useTitle
A hook that set title of the page.
Examples
Default usage
Set title of the page.
Basic usage
Set title of the page.
API
useTitle(title: string, options?: Options);
useTitle(title: string, options?: Options);
Params
| Property | Description | Type | Default |
|---|---|---|---|
| title | Page title | string | - |
Options
| Property | Description | Type | Default |
|---|---|---|---|
| restoreOnUnmount | Whether to restore the previous page title when the component is unmounted | boolean | false |