September 2018
Beginner
156 pages
3h 28m
English
The replace prop in <Link> calls history.replace(), which replaces the current entry in the history stack with the new path name mentioned in the to prop:
<Link to="/dashboard" replace>Dashboard</Link>
For example, if you access the page at the path /home, accessing the preceding link will replace the current entry in the history stack with /dashboard, which basically replaces the entry /home with /dashboard.
Read now
Unlock full access