Skip to content

Commit e0c5760

Browse files
committed
chore: format
1 parent cc67744 commit e0c5760

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/upgrading/v5.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,12 @@ import { Link } from "react-router-dom";
575575
```
576576

577577
The state value is still retrieved in the linked component using `useLocation()`:
578+
578579
```js
579580
function Home() {
580-
const location = useLocation();
581-
const state = location.state;
582-
return (
583-
<div>Home</div>
584-
);
581+
const location = useLocation();
582+
const state = location.state;
583+
return <div>Home</div>;
585584
}
586585
```
587586

0 commit comments

Comments
 (0)