What do you want to save?
Add Code snippet
New code examples
-
-
-
Javascript 2021-10-23 04:18:13
How to pass params with history.push?
import { useHistory } from "react-router-dom"; const FirstPage = props => { let history = useHistory(); const someEventHandler = event => { history.push({ pathname: '/secondpage', search: '?query=abc'... Add solution -
Javascript 2021-10-22 08:43:10
rotas react com axios
import React from 'react'; import {Route, BrowserRouter} from 'react-router-dom'; import Home from './Pages/Home'; import Form from './Pages/Form'; function Routes(){ return (  ... Add solution