---
description: "Create re-usable layouts across routes"
---
Layouts are plain Preact components that are inherited based on the matching
pattern. When you have a section on your site where all pages share the same
HTML structure and only the content changes, a layout is a neat way to abstract
this. Layouts only ever render on the server. The passed `Component` value
represents the children of this component.
```tsx main.tsx
function PageLayout({ Component }) {
return (