views
home
article
users
index.js export default
npm install react route dom
隻需要在頂層加 Router
Router
route component=home path=|home本身是一個元件
Link to=/home
NavLink activeclassname屬性
Redirect to=/home from=/
Switch
Route exact完全比對。由包含關系 子路由 exact
Hash Broswer