Layouts
Learn what layouts are in Gatsby and how to use them.
Introduction to layouts
The concept of layouts is not particular to Gatsby. A layout is a simple React component, and it follows React’s compositional model of importing and using any other components.
Layouts let us build pages and screens that look uniform. With layouts, we can have pages that use the same reusable components that should display uniformly on multiple pages. These components include headers and navigation bars, footers, side navigation, and so on.
What are layouts?
Layouts are simple components that accept a children
prop and render the children
alongside any common components or styling.
Usage
Below is an example of a simple layout component:
Get hands-on with 1400+ tech skills courses.