React Router logo, six dots in an upward triangle (one on top, two in the middle, three on the bottom) with a path of three highlighted and connected from top to bottom, next to the text React Router

一款注重用户体验、遵循标准、支持多种策略且可部署到任何地方的路由库。

此版本的新特性

无破坏性更改
从 v6 升级到 v7 是无破坏性的。您可以继续沿用已有的 React Router 使用方式。
桥接至 React 19
全新的打包、服务器渲染、预渲染和流式传输特性,让您能够逐步从 React 18 过渡到 19。
类型安全
新的类型生成工具 (typegen) 为路由参数、加载器数据、actions 等提供了第一类类型支持。

选择您的路径

2,335,432,935
npm 下载量
1,165
GitHub 贡献者
54,606
GitHub Star 数量
3,597,612
GitHub 依赖者数量
Developed by Shopify

©2025Shopify, Inc.