mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
17 lines
313 B
Markdown
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;
|
|
};
|
|
```
|