ZOYKU火線榜

remix-run/react-router技術文件

Declarative routing for React

多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
npm i react-router

Getting Started

React Router is a multi-strategy router for React. You can use it maximally as a Framework or minimally as a library with your own architecture. Check out the Getting Started docs and choose the mode that works best for your app.

Packages

Package Description Modes
react-router Core Framework, Data, Declarative
create-react-router Project creation Framework
@react-router/dev Development tooling Framework
@react-router/node Node.js Adapter Framework
@react-router/serve Web Server Framework
@react-router/express Express Adaptrer Framework
@react-router/architect Architect Adapter Framework
@react-router/cloudflare Cloudflare Adapter Framework
@react-router/fs-routes File-system routes Framework

Previous Versions

Looking for docs for an earlier version of React Router?

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-08