## 這裏獻上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