forked from lsjroberts/react-redux-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (25 loc) · 795 Bytes
/
index.js
File metadata and controls
30 lines (25 loc) · 795 Bytes
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
30
// Emulate an es6 environment
import 'babel-core/polyfill';
// Import our various react tools
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ReduxRouter } from 'redux-router';
// Import our store creator and routes config
import store from './modules/store';
import routes from './routes/routes';
const initialState = {
// You can add any initial state you want to app to start with here...
counter: 20
};
// Create our store with the initial state
const initialStore = store(initialState);
// Render out the root component with the redux provider and debug panel
render(
<div>
<Provider store={ initialStore }>
<ReduxRouter routes={ routes } />
</Provider>
</div>,
document.getElementById('root')
);