Skip to content

Commit c848a90

Browse files
committed
add direct links to inertia docs
1 parent cdfccf2 commit c848a90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ show.url(1, options); // "/posts/1?page=2&q=shirt"
257257

258258
When using [Inertia](https://inertiajs.com), you can pass the result of a Wayfinder method directly to the `submit` method of `useForm`, it will automatically resolve the correct URL and method:
259259

260+
[https://inertiajs.com/forms#wayfinder](https://inertiajs.com/forms#wayfinder)
261+
260262
```ts
261263
import { useForm } from "@inertiajs/react";
262264
import { store } from "@actions/App/Http/Controllers/PostController";
@@ -270,6 +272,8 @@ form.submit(store()); // Will POST to `/posts`...
270272

271273
You may also use Wayfinder in conjunction with Inertia's `Link` component:
272274

275+
[https://inertiajs.com/links#wayfinder](https://inertiajs.com/links#wayfinder)
276+
273277
```tsx
274278
import { Link } from "@inertiajs/react";
275279
import { show } from "@actions/App/Http/Controllers/PostController";

0 commit comments

Comments
 (0)