reactjs - Router configuration does not switch the pages -
why router configuration not navigate '/1/abc/home/inbox'? no errors/warnings in console.
didn't find answer in router docs.
<router history={browserhistory}> <route path="/:id/:name/home" component={home}> <route path="inbox" component={inbox}/> </route> </router>
this code navigates inbox correctly link above:
<router history={browserhistory}> <route path="/:id/:name/home" component={home}/> <route path="/:id/:name/home/inbox" component={inbox}/> </router>
thank you!
yeah, miss. forgot render {this props.children} in home component.
thank 0xrm, elod szopos.
Comments
Post a Comment