DEV Community

Discussion on: Quick start guide for react router v4 using create-react-app

Collapse
 
cutiko profile image
Erick Navarro

For some reason, I'm stuck with this and can't figure it out. My problem is that when the route change, the whole page is reloaded. I try with Hashrouter instead, and that did work, but can't make it work with BrowserRouter

Collapse
 
nodefiend profile image
chowderhead

well we definitly don't want to trigger a page reload.

are you getting any errors in the console?

make sure to have routes clearly defined inside of app.js

make sure you are passing correct prop to Component for to

check out this post from tyler mginiss , might help, he goes in to more depth:

tylermcginnis.com/build-your-own-r...