What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-06 21:21:03
uselocation hook
import { useHistory } from "react-router-dom"; function HomeButton() { let history = useHistory(); function handleClick() { history.push("/home"); } return ( <button type="button" onClick={handleClick}&g... Add solution -
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 -
-
Shell/Bash 2021-08-30 09:02:02
react router dom install
$ npm install --save react-router-dom Add solution -
Shell/Bash 2021-08-29 22:30:02
installing react router dom with yarn
npm install react-router-dom Add solution