Skip to content

Commit 1216fa9

Browse files
committed
chore: generate markdown docs from jsdocs
1 parent a22f17d commit 1216fa9

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

docs/api/hooks/useNavigate.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,16 @@ navigate("/some/route?search=param");
7878
All properties are optional.
7979

8080
```tsx
81-
navigate({
82-
pathname: "/some/route",
83-
search: "?search=param",
84-
hash: "#hash",
85-
state: { some: "state" },
86-
});
81+
navigate(
82+
{
83+
pathname: "/some/route",
84+
search: "?search=param",
85+
hash: "#hash",
86+
},
87+
{
88+
state: { some: "state" },
89+
},
90+
);
8791
```
8892

8993
If you use `state`, that will be available on the [`Location`](https://api.reactrouter.com/v8/interfaces/react-router.Location.html) object on

0 commit comments

Comments
 (0)