useDocumentTitle
About
Sets the document title and optionally resets the title on unmount
Examples
Basic example
Example with reset
Arguments
Argument | Type | Description |
---|---|---|
title | string | The new document title |
options | object | Options object |
options.resetOnUnmount | boolean | Whether to reset the document title on unmount |
Return
void