Skip to content

Instantly share code, notes, and snippets.

Trần Văn Luận luandevpro

  • Viet Nam
Block or report user

Report or block luandevpro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View match.js
let testStr = "freeCodeCamp freeCodeCamp";
let ourRegex = /freeCodeCamp/;
let result = testStr.match(ourRegex);
console.log(result) // ["freeCodeCamp"]
View test.js
let testStr = "freeCodeCamp";
let ourRegex = /code/i;
let result = ourRegex.test(testStr);
console.log(result) // true
View test.js
let testStr = "freeCodeCamp";
let testRegex = /Code|code/;
testRegex.test(testStr);
View test.js
let testStr = "freeCodeCamp";
let testRegex = /Code/;
testRegex.test(testStr);
View PhoneNumber.js
...
<div id="recaptcha-container"></div>
...
View PhoneNumber.js
import React, { useState, useEffect } from 'react';
import { Formik, Form, Field } from 'formik';
import firebase, { auth } from '../lib/firebase';
export default function PhoneNumber() {
const [confirmationResult, setConfirmationResult] = useState(null);
const [displayName, setDisplayName] = useState(null);
useEffect(
() =>
View Terminal1
packages/theme/pages/index.mdx
View index . mdx
import { Header } from 'theme';
<Header>Header content goes here</Header>
View index.js
export { default as Header } from "./src/components/header"
You can’t perform that action at this time.