preact-head

Standalone, declarative <Head /> for Preact.

Stars
38

Preact-head

Standalone, declarative <Head /> for Preact.

Supports both client and server-side rendering.

Example

<Head>
  <title>{state.title}</title>
  <meta name="Whatever" content={state.count} />
</Head>

Installation

yarn add preact-head

Credit

This was inspired by and ported from next.js & react-declarative-head with adjustments to make it work with well with Preact.

License

MIT

Package Rankings
Top 6.74% on Proxy.golang.org