-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.js
26 lines (21 loc) · 827 Bytes
/
main.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
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router'
import DashBoard from './components/DashBoard.jsx'
import Containers from './components/Containers.jsx'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import configureStore from './configureStore'
let store = configureStore()
ReactDOM.render(
<Provider store={store}>
<Router history={browserHistory}>
<Route path='/' component={App}>
<IndexRoute component = {DashBoard} />
<Route path = 'DashBoard' component = {DashBoard} />
<Route path = 'Containers' component = {Containers} />
</Route>
</Router>
</Provider>
, document.getElementById("app"));