Express changes before testing 9.1
I might be missing something here - since I am still trying to wrap my head around Router - so unsure if this is an issue.
Test: /, /bugs and any other URL for triggering a 404.
Before I can run the above test in 9.1 - wouldn't I require changes in webapp.js too - to make express point to 'router-rendering' ?)
Update : When I test run / with the 9.1 code - I get a blank page. Adding a browserHistory attribute to the <Router> JSX tag fixes it.
-
Hazarding a guess, maybe the issue is because of different Router versions
-
Strikethrough text - Intuitively, I was expecting some express code to point '/' to index.html and bundle.js to enable the Router routing code can take over. So I associated it to the blank page issue. I still need to wrap my head around how the routing code takes over - but I think this is unrelated to the issue above. :)
https://github.com/vasansr/react-tutorial-mern/compare/step-8.3...step-9.1
I'm really interested in this tutorial, but it breaks at step 2.2 Transform. Even when I clone the repo from github and run it, i get a 404 error. Does anyone know a fix ?
@ctscodes : This tutorial is more than a year old. Newer version of npm packages may behave differently. I know for a fact that React-Router does. Please use package.json also from the git repo and install the specific versions -- it will work.