Flux Architecture: Routing with react-router 1.0

Joe Maddalone
InstructorJoe Maddalone

Share this video with your friends

Send Tweet

In this lesson we'll introduce routing into our application using react-router 1.0

Aviad Shikloshi
Aviad Shikloshi
~ 6 years ago

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?

Joel Hooks
Joel Hooks
~ 6 years ago

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?

Richard
Richard
~ 6 years ago

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

Rahul Shelke
Rahul Shelke
~ 4 years ago

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?