-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
29 lines (23 loc) · 961 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
25
26
27
28
29
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from './storage'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { Home, NewProjectForm } from "./components";
import { applicationComponent } from './components/layout';
import { Project } from './containers';
import registerServiceWorker from './utils/registerServiceWorker';
render(
<Provider store={store}>
<Router>
<Switch>
<Route exact path="/" component={applicationComponent(Home)}/>
<Route exact path="/projects/new" component={applicationComponent(NewProjectForm)}/>
<Route exact path="/projects/:projectId/outputs" component={applicationComponent(NewProjectForm)}/>
<Route path="/projects/:projectId/" component={applicationComponent(Project)}/>
</Switch>
</Router>
</Provider>,
document.getElementById('root')
);
registerServiceWorker();