Skip to content

Files

Latest commit

d3d5bc9 Β· Jul 17, 2019

History

History
16 lines (11 loc) Β· 296 Bytes

useStartTyping.md

File metadata and controls

16 lines (11 loc) Β· 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

import {useStartTyping} from 'react-use';

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

  return null;
};