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