Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 313 Bytes

useStartTyping.md

File metadata and controls

16 lines (10 loc) · 313 Bytes

useStartTyping

React传感器钩子,用于在用户开始键入时触发回调。 可用于聚焦页面上的默认输入字段。

Usage

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

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

  return null;
};