1.0.1 • Published 2 years ago

Install
npm install react-router-navigate-back
Import
import { useNavigate, Link } from 'react-router-navigate-back'
Usage
Use inside the Router component, for example as below
<Link to="/settings" back>Back</Link>
navigate('/settings', {
back: true
})