use-doc-title
v0.1.0
Published
A pretty custom hooks for document title and react
Downloads
2
Maintainers
Readme
use-doc-title
A pretty custom hooks for css variable and react.
- type-safe!
Install
// npm
npm install --save use-document-title
// yarn
yarn add use-document-title
Usage
import React, { FC } from 'react'
import { useDocumentTitle } from 'use-doc-title'
export const Component: FC = () => {
const [foo, setFoo] = useDocumentTitle('foo')
}