import ReactDOM from 'react-dom';

const state = window.__INITIAL_STATE__ || {};

document.addEventListener('DOMContentLoaded', () => {
    ReactDOM.render(
        <App {...state} />,
        document.getElementById('app')
    );
});