diff --git a/demo/route/public/index.html b/demo/route/public/index.html index aa069f27c..4c154b619 100644 --- a/demo/route/public/index.html +++ b/demo/route/public/index.html @@ -1,3 +1,9 @@ +
diff --git a/demo/route/read.text b/demo/route/read.text new file mode 100644 index 000000000..aeefdc684 --- /dev/null +++ b/demo/route/read.text @@ -0,0 +1,19 @@ +1、react-router-dom +2、BrowserRouter HashRouter 标签 +3、路由组件与一般组件的区别 +4、Route标签 路由组件 +5、NavLink标签 高亮效果 +6、activeClassName 自定义高亮路由类名 +7、批量接收props {...this.props} +8、children相当于标签体内容 +9、Switch to只匹配path一次,可以提高效率 + +