What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-19 11:05:08
apply back button to a react component
import { useHistory } from "react-router-dom"; export const Item = () => { let history = useHistory(); return ( <> <button onClick={() => history.goBack()}>Back</button> </> );... Add solution