Working with Layouts

Learn how to work with layouts to create a reusable, consistent base for the application’s pages.

When working with multiple pages, it’s common practice to create a Layout component to share styles and structure across different pages. In this lesson, we’ll take a look at how to achieve this with a component.

Using import aliases

In the following code widget, notice that we already have the home and contact pages created. However, instead of static HTML, we have a Layout component with some content inside it.

Get hands-on with 1400+ tech skills courses.