-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
24 lines (24 loc) · 901 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import ReactDOM from 'react-dom';
// import App from './components/App';
import StandUpIndex from './containers/StandUpIndex';
import StandUpNew from './containers/StandUpNew';
import StandUpShow from './containers/StandUpShow';
import {Provider} from 'react-redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import registerServiceWorker from './registerServiceWorker';
import store from './stores/store';
ReactDOM.render(
<Provider store = {store}>
<BrowserRouter>
<div>
<Switch>
<Route path= "/standups/new" component= {StandUpNew} />
<Route path= "/standups/:id" component= {StandUpShow} />
<Route path= "/standups" component= {StandUpIndex} />
</Switch>
</div>
</BrowserRouter>
</Provider>
, document.getElementById('root'));
registerServiceWorker();