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