react-use/docs/useStartTyping.md
2019-04-07 21:29:02 +02:00

313 B

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/lib/useStartTyping';

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

  return null;
};