import React from 'react'; import ReactDOM from 'react-dom'; import { createHashHistory } from 'History'; import { Router, Route, useRouterHistory, IndexRedirect } from 'react-router'; import { syncHistoryWithStore, RouterStore } from 'mobx-react-router'; import { Provider } from 'mobx-react'; import Module from 'weaOrganization'; const routing = new RouterStore(); const allStore = { routing, ...Module.store, }; const browserHistory = useRouterHistory(createHashHistory)({ queryKey: '_key', basename: '/', }); const history = syncHistoryWithStore(browserHistory, allStore.routing); const Home = props => props.children; const Root = () => ( { Module.Route } ); ReactDOM.render(, document.getElementById('container'));