React Router Data Mode
Data mode uses
createBrowserRouter
and
RouterProvider
to enable data loading, actions, and pending UI without the framework's Vite plugin. This is ideal for existing React applications that want to add data loading and mutation capabilities.
When to Apply
Using
createBrowserRouter
with route objects
Loading data with
loader
property on routes
Handling mutations with
action
property
Navigating with
,
react-router-data-mode
安装
npx skills add https://github.com/remix-run/agent-skills --skill react-router-data-mode