## 这里献上git
## 官方文档
## 参考
## react 死循环之本身引用本身.react
<BrowserRouter /> http://example.com/about
<BrowserRouter /> http://example.com/#/about
Route : 路由显示什么组件,显示在什么位置,它有三个props用来定义渲染内容:git
switch : The <Switch> is not required for grouping <Route>s, but it can be quite useful. A <Switch> will iterate over all of its children <Route> elements and only render the first one that matches the current location. This helps when multiple route’s paths match the same pathname, when animating transitions between routes, and in identifying when no routes match the current location (so that you can render a “404” component).=>{github
}
<Redirect>
被使用的时候,它会将当前url导入他的to值指向的url组件.dome1 是关于基本的使用.web
dome2 是关于url参数的获取.正则表达式
dome3 理解 switchreact-router