Commit 565e914
docs: add client side routing guide to RAC Link page (#9992)
* docs: restore client side routing / RouterProvider section in frameworks.mdx ♜
The previous `routing.html` page covered `RouterProvider` setup in detail
(general API, React Router, Next.js app/pages router, Remix, TanStack
Router) but is no longer linked from the new docs and `react-aria.adobe.com/routing`
returns 404. The new `frameworks.mdx` page only mentions `RouterProvider`
in passing inside the React Router (framework mode) tab and does not
explain how to set it up.
This restores the old detailed routing content as a 'Client side routing'
section at the top of `frameworks.mdx`, ahead of the existing locale and
bundler tabs (now grouped under 'Locale and bundler setup').
Co-authored-by: Rook <rook@rook.is>
* docs: split client side routing setup across framework tabs ♜
Move the framework-specific RouterProvider setup into the existing
Next.js, React Router, and a new TanStack Router tab in frameworks.mdx,
rather than as one long section above all tabs.
- Keep a brief 'Client side routing' intro above the tabs covering the
general RouterProvider API and routerOptions.
- Next.js tab: App Router (RouterProvider in client provider, plus
optional basePath/useHref) and a 'Pages router' subsection.
- React Router tab: framework-mode RouterProvider wired into the root
layout, plus 'Declarative mode' and 'Remix' subsections.
- New TanStack Router tab documents the createLink approach
(RouterProvider not needed).
- Bundler tabs (Parcel/Vite/webpack/Rollup/ESBuild) unchanged.
Co-authored-by: Rook <rook@rook.is>
* docs: explain client side routing via render prop instead of RouterProvider ♜
Replace the dead ./frameworks link on the Link docs page with a new
'Client side routing' section showing the render prop pattern for
Next.js and React Router. Update getting-started.mdx to point to the
Link docs for routing setup instead of the frameworks page.
Revert previous changes to frameworks.mdx and remove TanStackRouter icon.
Co-authored-by: Rook <rook@rook.is>
---------
Co-authored-by: Rook <rook@rook.is>1 parent 8028fd5 commit 565e914
2 files changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
37 | 61 | | |
38 | 62 | | |
39 | | - | |
| 63 | + | |
40 | 64 | | |
41 | 65 | | |
42 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
0 commit comments