p5.js-web-editor/client/index.js
2016-06-22 13:49:06 -04:00

19 lines
No EOL
512 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 './store'
import routes from './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(store)} />
</Provider>,
document.getElementById('root')
)