core
Generate the list of tags that will be rendered.
Type:
() => Promise<HeadTag[]>
Generate the list of tags that will be rendered. This is used internally for DOM rendering and SSR render.
import { createHead } from 'unhead'
const head = createHead()
head.push({ title: 'Hello World ' })
await head.resolveTags()
// [
// { tag: 'title', props: { textContent: 'Hello World' } }
// ]