SEO
Crax provides a <Head> component for declarative document head management. It wraps @unhead/react internally and parses standard HTML elements as children.
All tags are expressed as JSX — nest <title>, <meta>, <link>, and <script> directly inside <Head>.
Warning
<Head> must be called unconditionally — before any early returns in your component. It follows React hooks rules and cannot be placed inside conditional branches.
Title
Meta Tags
Open Graph
Use property attributes for Open Graph tags:
Twitter Card
Canonical URL
Language Alternates
Icons
Structured Data (JSON-LD)
Pass serialized JSON inside a <script type="application/ld+json"> element:
