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

React Router: Named Components

React Router: Named Components

2:28
In this lesson we'll learn how to render multiple component children from a single route.
Watch this lesson now
Avatar
egghead.io

In this lesson we'll learn how to render multiple component children from a single route.

Avatar
Zhenyang Hua

Does it has to be "body" and "header" as keywords? What decides the order of the subcomponents being rendered?

Avatar
Joseph

No the keys can be whatever you like, sorry if that was not clear.

The order is decided by however you lay your components out, this is covered at 0:25 in the lesson.

const Container = (props) =>
  <div>{props.header}{props.body}<Links /></div>
In reply to Zhenyang Hua
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?