We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc67744 commit e0c5760Copy full SHA for e0c5760
docs/upgrading/v5.md
@@ -575,13 +575,12 @@ import { Link } from "react-router-dom";
575
```
576
577
The state value is still retrieved in the linked component using `useLocation()`:
578
+
579
```js
580
function Home() {
- const location = useLocation();
581
- const state = location.state;
582
- return (
583
- <div>Home</div>
584
- );
+ const location = useLocation();
+ const state = location.state;
+ return <div>Home</div>;
585
}
586
587
0 commit comments