My code works perfectly fine with this code.
ReactDOM.render(
<div>
<App/>
</div>,
destination
);
However when I proceed to set up the React Router.
ReactDOM.render(
<ReactRouter.Router>
<ReactRouter.Route path ="/" component={App}>
</ReactRouter.Route>
<ReactRouter.Router>,
destination
);
Once I load the document in Google Chrome. Dev Tools gives me the following error.
Uncaught TypeError: Cannot read property ‘getCurrentLocation’ of undefined
at Constructor.createTransitionManager (ReactRouter.min.js:1)
at Constructor.componentWillMount (ReactRouter.min.js:1)
at react.js:6244
at measureLifeCyclePerf (react.js:5971)
at ReactCompositeComponentWrapper.performInitialMount (react.js:6243)
at ReactCompositeComponentWrapper.mountComponent (react.js:6154)
at Object.mountComponent (react.js:13768)
at ReactCompositeComponentWrapper.performInitialMount (react.js:6267)
at ReactCompositeComponentWrapper.mountComponent (react.js:6154)
at Object.mountComponent (react.js:13768)