useDocumentHead()
Use the useDocumentHead()
function to retrieve the document head metadata.
useDocumentHead()
retrieves a DocumentHead
object that will allow you to:
- update the
title
in<head>
. - update the
meta
tags in<head>
. - update the
link
tags in<head>
. - update the
style
tags in<head>
.
The useDocumentHead()
function can be used within a Qwik component, such as <Head>
, to create the inner elements within document.head
.