Answers for "history.goback"

1

useHistory goback

import {useHistory} from "react-router-dom";

const history = useHistory();

<button onClick={() => history.goBack()}>Go Back</button>
Posted by: Guest on November-30-2020
4

js go back

history.back()
Posted by: Guest on April-14-2020
1

react router go rprevious page

directly use (()=>this.props.history.goBack())
Posted by: Guest on December-16-2020
-1

how to go back in usinsg router hisotry

this.props.history.goBack(); //react-router (v4)
Posted by: Guest on November-10-2020

Browse Popular Code Answers by Language