react-use/docs/useStartTyping.md
2019-04-07 21:29:02 +02:00

17 lines
313 B
Markdown

# `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/lib/useStartTyping';
const Demo = () => {
useStartTyping(() => alert('Started typing...'));
return null;
};
```