mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
docs: fix module name typo
This commit is contained in:
parent
58a3dbe5e6
commit
aee332fbfc
@ -2,19 +2,14 @@
|
||||
|
||||
Returns `true` after a specified number of milliseconds.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```jsx
|
||||
import {useTimeouta} from 'react-use';
|
||||
import { useTimeout } from 'react-use';
|
||||
|
||||
const Demo = () => {
|
||||
const ready = useTimeout(2000);
|
||||
|
||||
return (
|
||||
<div>
|
||||
Ready: {ready ? 'Yes' : 'No'}
|
||||
</div>
|
||||
);
|
||||
return <div>Ready: {ready ? 'Yes' : 'No'}</div>;
|
||||
};
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user