Skip to content
zenui/react-hooks

useDocumentTitle

Sets document.title while the component is mounted and restores the previous title when it unmounts. Use it for page titles and unread counts.

Level
Basic
Since
v2.1.0
import {useDocumentTitle} from '@zenuilabs/react-hooks';
Loading demo_

More in Utilities