---
title: "<Head> Component"
description: "JSX-based head management with Head, Title, Meta, Link, Script components. HTML-like syntax alternative to useHead()."
canonical_url: "https://unhead.unjs.io/docs/react/head/guides/core-concepts/components"
last_updated: "2026-05-14T14:12:03.025Z"
---

**Quick Answer:** Use `<Head>`, `<Title>`, `<Meta>`, `<Link>`, and `<Script>` components for JSX-based head management. Import from `@unhead/react/components`.

The `<Head>` component from `@unhead/react` makes HTML head tag management simple in React applications.

While `useHead()` provides better TypeScript support, the `<Head>` component offers an HTML-like syntax that's more readable.

## How Do I Get Started with Head Components?

```tsx
import { Head } from '@unhead/react'

function App() {
  return (
    <Head>
      <title>My Site</title>
      <meta name="description" content="Site description" />
    </Head>
  )
}
```

## What Tags Are Supported?

### Which Meta Tags Should I Use?

```tsx
<Head>
  <title>Page Title</title>
  <meta name="description" content="Clear, compelling description under 155 characters" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="robots" content="index,follow" />
  <meta charset="utf-8" />
</Head>
```

### How Do I Add Link Tags?

```tsx
<Head>
  {/* Stylesheets */}
  <link rel="stylesheet" href="/styles.css" />

  {/* Preloading Critical Resources */}
  <link rel="preload" href="/critical-font.woff2" as="font" type="font/woff2" crossorigin />

  {/* Performance Hints */}
  <link rel="dns-prefetch" href="//api.example.com" />
  <link rel="preconnect" href="https://api.example.com" />

  {/* Icons */}
  <link rel="icon" href="/favicon.ico" sizes="32x32" />
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</Head>
```

### How Do I Add Scripts?

```tsx
<Head>
  {/* Async Loading */}
  <script async src="https://example.com/analytics.js" />

  {/* Module/NoModule Pattern */}
  <script type="module" src="/modern.js" />
  <script noModule src="/legacy.js" />

  {/* Inline Scripts */}
  <script type="application/ld+json">
    {JSON.stringify({
      '@context': 'https://schema.org',
      '@type': 'WebSite',
      'name': 'Your Site Name'
    })}
  </script>
</Head>
```

### How Do I Set Up Open Graph Tags?

```tsx
<Head>
  <meta property="og:title" content="Page Title" />
  <meta property="og:description" content="Page description" />
  <meta property="og:image" content="https://example.com/image.jpg" />
  <meta property="og:url" content="https://example.com/page" />
  <meta property="og:type" content="website" />
</Head>
```

### How Do I Configure Twitter Cards?

```tsx
<Head>
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:site" content="@username" />
  <meta name="twitter:title" content="Page Title" />
  <meta name="twitter:description" content="Page description" />
  <meta name="twitter:image" content="https://example.com/image.jpg" />
</Head>
```

## How Do I Use Advanced Features?

### How Do I Control Tag Priority?

Control rendering order with `tagPriority`:

```tsx
<Head>
  <title tagPriority="critical">Must Load First</title>
  <link rel="stylesheet" href="/styles.css" tagPriority="high" />
  <script src="/analytics.js" tagPriority="low" />
</Head>
```

### How Do I Position Tags in the Document?

Place tags in specific locations:

```tsx
<Head>
  <script src="/early.js" tagPosition="head" />
  <script src="/late.js" tagPosition="bodyClose" />
</Head>
```

### How Does Tag Deduplication Work?

Unhead automatically dedupes tags based on their content and attributes. Later instances override earlier ones:

```tsx
<>
  <Head>
    <meta name="description" content="Will be overridden" />
  </Head>
  <Head>
    <meta name="description" content="Final description" />
  </Head>
</>
```
