UNPKG

react-document-title-hook

Version:

A tiny React component to update the document title

28 lines (18 loc) 391 B
# react-document-title-hook A tiny React component to update the document title. ## Install ```bash npm install react-document-title-hook ``` ## Use Example ```bash import DocumentTitle from 'react-document-title-hook'; function HomePage() { return ( <> <DocumentTitle title="Home Page" /> <h1>Welcome to my site</h1> </> ); } ```