react-code-dataset / react-use /docs /useStartTyping.md
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
# `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;
};
```