|
Download react-use/docs/useStartTyping.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/docs/useStartTyping.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-use/docs/useStartTyping.md
-
curl -L -o useStartTyping.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/docs/useStartTyping.md
296 Bytes
| # `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; | |
| }; | |
| ``` | |