I'm using React with React Router and I have a very simple case:
var Router = window.ReactRouter.Router;
var useRouterHistory = window.ReactRouter.useRouterHistory;
var Route = window.ReactRouter.Route;
var createHistory = window.History.createHistory;
const appHistory = useRouterHistory(createHistory)({ queryKey: false });
// my component ...
ReactDOM.render((
<Router history={appHistory}>
<Route path="/" component={MyTable}>
</Route>
</Router>
), document.getElementById('table-wrapper'));
However, this doesn't render the MyTable component. If I remove the "history={appHistory}" part from the Router component, then it renders the MyTable component. I also tried using the default browserHistory from the router, same thing - doesn't work with history attribute, works without it.
What am I doing wrong?
EDIT: there is no error message in the console and I'm using the non-minified, development version of React.