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) 为路由参数、loader 数据、actions 等提供了一流的类型支持。

选择你的起点

Developed by Shopify

©2025Shopify, Inc.