useTitle
Changes the page title dynamically.
useTitle
Installation
Usage
API
useTitle
Returns an object containing the current page title and a function to update both the state and the document title.
Returns
| Name | Type | Description |
|---|---|---|
| title | string | Current page title. |
| changeTitle | (newTitle: string) => void | A function to update the page title. |