import * as React from 'react' ; import * as ReactDOM from 'react-dom' ; import { Provider } from 'mobx-react' ; import { createBrowserHistory } from 'history' ; import { createStores } from 'app/stores' ; import { App } from 'app' ; const history = createBrowserHistory ( ) ; const rootStore = createStores ( history ) ; ReactDOM . render ( < Provider { ... rootStore } > < App history = { history } / > < /Provider>, document.getElementById('root'));