We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9a057 commit 2f92d47Copy full SHA for 2f92d47
router/README.md
@@ -1,6 +1,5 @@
1
# 路由
2
通过 URL 映射到对应的功能实现,React 的路由使用要先引入 react-router.js。
3
-
4
注意:
5
react-router 4.0 以上的版本和 3.0 及以下的版本有很大的差别,本教程使用的是 3.0.2 的版本,后续会更新 4.0 以上版本的教程。在使用 npm 安装时默认是安装最新版本,如果安装的版本是最新的,而使用上用的是 3.0 版本的用法,则会报错。
6
所以在 npm 安装时要指定版本 `npm install [email protected] --save-dev`。
0 commit comments