Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 311 Bytes

useStartTyping.md

File metadata and controls

16 lines (11 loc) · 311 Bytes

useStartTyping

React sensor hook that fires a callback when user start typing. Can be use to focus default input field on the page.

Usage

import useStartTyping from 'react-use/lib/useStartTyping';

const Demo = () => {
  useStartTyping(() => alert('Started typing...'));

  return null;
};