File size: 296 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# `useStartTyping`
React sensor hook that fires a callback when user starts typing. Can be used
to focus default input field on the page.
## Usage
```jsx
import {useStartTyping} from 'react-use';
const Demo = () => {
useStartTyping(() => alert('Started typing...'));
return null;
};
```
|