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

PropertyDescriptionTypeDefault
titlePage titlestring-

Options

PropertyDescriptionTypeDefault
restoreOnUnmountWhether to restore the previous page title when the component is unmountedbooleanfalse