Check out a free preview of the full Building Web Apps (with React, Ampersand, ES6 and Webpack) course:
The "Creating a Layout Component" Lesson is part of the full, Building Web Apps (with React, Ampersand, ES6 and Webpack) course featured in this preview video. Here's what you'd learn in this lesson:
Many element will be shared across different pages. It would be inefficient to recreate something like a navigation menu in each component. Henrik demonstrates how to create a layout and use the children property to inject dynamic content. He then modifies the routes handler to load the correct layout.