The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

React Router: IndexRoute

React Router: IndexRoute

1:55
IndexRoute allows us to define a default child component to be rendered at a specific route when no other sub-route is available.
Watch this lesson now
Avatar
egghead.io

IndexRoute allows us to define a default child component to be rendered at a specific route when no other sub-route is available.

Avatar
sk29110

After your change /about path should not be existed right?

Avatar
kevin

If you follow this video, and at the end click on the link created to go to about, rather than clicking the link for home, you will get a routing error. fyi, you need to add a Route for the about link to go to.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?