With react-router I can use the Link element to create links which are natively handled by react router.
react-router
Link
I see internally it calls t
t
Update : React Router v6 with hooks
import {useNavigate} from 'react-router-dom'; let navigate = useNavigate(); navigate('home');
And to move across the browser history,
navigate(-1); ---> Go back navigate(1); ---> Go forward navigate(-2); ---> Move two steps backward.