Skip to content

Commit 2f9ffa5

Browse files
committed
chore: generate markdown docs from jsdocs
1 parent 6c36c87 commit 2f9ffa5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/api/hooks/useNavigate.md

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

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

9189
If you use `state`, that will be available on the [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html) object on

0 commit comments

Comments
 (0)