In this lesson we'll introduce routing into our application using react-router 1.0
I got to a point where the {props.children} are defined but are not rendered inside of the Template component. Webpack is saying nothing and so as the chrome console. Any ideas?
I got to a point where the {props.children} are defined but are not rendered inside of the Template component. Webpack is saying nothing and so as the chrome console. Any ideas?
Did you compare your code to the provided lesson code?
I brought in the latest version of react-router, and history. Check the package.json on github (https://github.com/joemaddalone/egghead-flux-architecture/blob/08-routing/package.json). Was having issues with version 1.0. https://github.com/rackt/react-router/issues/2195
Hi Joel,
While adding headers and links, I got an error saying getCurrentLocation
is undefined. On trying various things, I finally was able to make it work by adding history = { hashHistory }
in Router component in the app.js file.
So, I am wondering why did it work in your case without history
?