static-cms/src/index.js

22 lines
500 B
JavaScript
Raw Normal View History

2016-02-25 00:45:56 -08:00
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import Routes from './routes/routes';
import 'file?name=index.html!../example/index.html';
import styles from './index.css';
2016-02-25 00:45:56 -08:00
const store = configureStore();
window.store = store;
2016-02-25 00:45:56 -08:00
const el = document.createElement('div');
2016-07-05 15:48:18 -03:00
el.id = 'root';
2016-02-25 00:45:56 -08:00
document.body.appendChild(el);
render((
<Provider store={store}>
<Routes/>
</Provider>
), el);