AllenYuan

index.js settings route

May 5th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //...
  2. import Settings from './components/Settings';
  3.  
  4. import { Router, Route, IndexRoute, hashHistory } from 'react-router';
  5.  
  6. // wrap app with store provider, router provider
  7. ReactDOM.render(
  8.   <Provider store={store}>
  9.     <Router history={hashHistory}>
  10.       <Route path="/" component={App}>
  11.         <IndexRoute component={Home} />
  12.         <Route path="login" component={Login} />
  13.         <Route path="register" component={Register} />
  14.         <Route path="settings" component={Settings} />
  15. // ...
Add Comment
Please, Sign In to add comment