useStartTypingReact sensor hook that fires a callback when user starts typing. Can be used to focus default input field on the page.
import {useStartTyping} from 'react-use';
const Demo = () => {
useStartTyping(() => alert('Started typing...'));
return null;
};
// TODO: implement useStartTyping function notImplemented(..._args: any[]): any { throw new Error('Not implemented'); } export default notImplemented; export const useStartTyping = notImplemented;
Tests