mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
docs: ✏️ re-create title docs
This commit is contained in:
parent
27319bd0bb
commit
65b889e57f
16
docs/useTitle.md
Normal file
16
docs/useTitle.md
Normal file
@ -0,0 +1,16 @@
|
||||
# `useTitle`
|
||||
|
||||
React side-effect hook that sets title of the page.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```jsx
|
||||
import {useTitle} from 'react-use';
|
||||
|
||||
const Demo = () => {
|
||||
useTitle('Hello world!');
|
||||
|
||||
return null;
|
||||
};
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user