Skip to content

Commit 8a6a297

Browse files
committed
lil’ bit more info
1 parent 02d0c57 commit 8a6a297

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ The router at the top of your app determines which features are available to the
1313
- **Data**: Everything from declarative but adds data features like loaders, actions, and pending states. If you're using `createBrowserRouter`, you're using data.
1414
- **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.
1515

16+
Each API doc will list which modes in which it's available with this:
17+
18+
[MODES: framework, data, declarative]
19+
1620
## Declarative
1721

22+
[modes: declarative]
23+
1824
[Get Started](./start/library/installation) with Declarative routing.
1925

2026
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.
@@ -39,6 +45,8 @@ ReactDOM.createRoot(root).render(
3945

4046
## Data
4147

48+
[modes: data]
49+
4250
[Get Started](./start/library/installation) building a custom framework with a data router.
4351

4452
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
92100

93101
## Framework
94102

103+
[modes: framework]
104+
95105
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:
96106

97107
- Vite bundler and dev server integration

0 commit comments

Comments
 (0)