When To Use A Partial#
Use a partial when a piece of markup should have one clear home.
Good candidates are:
- UI that appears in more than one template
- markup that makes a page template hard to scan
- small pieces that deserve a clear name, like
PostCard,SiteHeader, orLanguageSwitcher
What Partials Can Do#
A partial can read the current values where it is called, receive props, define default props, accept slot content, and live inside folders.
That lets you keep writing HTML-shaped templates while moving repeated UI into named files.