useDocumentTitle
Set document.title from a page component.
useDocumentTitle(title, suffix = '')Sets document.title to "title · suffix", or just the suffix when there is no title. Call it from each page component.
The tab now reads: Banana vault · Minion HQ
API
titlestringPage title; may be empty.
suffixstringDefault:''Site name appended after a "·".
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | – | Page title; may be empty. |
suffix | string | '' | Site name appended after a "·". |