What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-01 07:28:02
tailwind react
1. npx create-react-app . 2. npm i -D tailwindcss postcss-cli autoprefixer or npm install tailwindcss@latest postcss@latest autoprefixer@latest //postcss - transform our compile css // autoprefixer - set vendor prefixes within our css automatically whe... Add solution -
Javascript 2021-09-01 07:21:01
suspense react
import React, {Suspense} from 'react; const ProfilePage = React.lazy(() => import('./ProfilePage')); // Lazy-loaded // Show a spinner while the profile [data fetching] is loading <Suspense fallback={<Spinner />}> <ProfilePage /> &l... Add solution -
Javascript 2021-09-01 06:16:02
reactjs change window name
import React, { useEffect } from 'react' import ReactDOM from 'react-dom' const App = () => { // This effect runs once, after the first render useEffect(() => { document.title = "This is a title" }, []) return <h1>Hel... Add solution -
Javascript 2021-08-29 09:26:02
semantic ui react modal
import React from 'react' import { Button, Header, Image, Modal } from 'semantic-ui-react' function ModalExampleModal() { const [open, setOpen] = React.useState(false) return ( <Modal onClose={() => setOpen(false)} onOpen={() =... Add solution -
Javascript 2021-08-29 08:13:02
svg css background react
import React from "react"; import "./styles.css"; import BackgroundSVG from "./backgroundSVG"; // import this to render static markup import { renderToStaticMarkup } from 'react-dom/server'; export default function App() { ... Add solution