p5.js-web-editor/client/index.js
2016-06-20 17:46:23 -04:00

19 lines
No EOL
542 B
JavaScript

import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router'
import configureStore from '../shared/redux/store/configureStore'
import routes from '../shared/routes'
require('../styles/main.scss');
const history = browserHistory
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState)
render(
<Provider store={store}>
<Router history={history} routes={routes} />
</Provider>,
document.getElementById('root')
)