Preact-head

May 3, 2017 ยท View on GitHub

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

Contents

  1. 1Example
  2. 2Installation
  3. 3Credit
  4. 4License