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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -