You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,14 @@ The router at the top of your app determines which features are available to the
13
13
-**Data**: Everything from declarative but adds data features like loaders, actions, and pending states. If you're using `createBrowserRouter`, you're using data.
14
14
-**Framework**: Let React Router do it all with efficient bundling, code splitting, server rendering, and advanced type safety. If you're using `routes.ts`, you're using the framework.
15
15
16
+
Each API doc will list which modes in which it's available with this:
17
+
18
+
[MODES: framework, data, declarative]
19
+
16
20
## Declarative
17
21
22
+
[modes: declarative]
23
+
18
24
[Get Started](./start/library/installation) with Declarative routing.
19
25
20
26
Like previous versions, React Router can still be used as a simple, declarative routing library. Its only job will be matching the URL to a set of components, providing access to URL data, and navigating around the app.
[Get Started](./start/library/installation) building a custom framework with a data router.
43
51
44
52
The framework features are built on top of lower-level APIs in React Router. You can use these APIs directly for a lighter-weight usage of React Router, but you'll need to set up your own bundling and server rendering (if you want it).
@@ -92,6 +100,8 @@ Using a data router, you now have access to nearly every runtime API in React Ro
92
100
93
101
## Framework
94
102
103
+
[modes: framework]
104
+
95
105
Building on top of the data mode, React Router can be used maximally as your React framework. In this setup, you'll use the React Router CLI and Vite bundler plugin for a full-stack development and deployment architecture. This enables React Router to provide a large set of features most web projects will want, including:
0 commit comments