@21kb/react-element-focus-hook 中文文档教程
@21kb/react-window-focus-hook
React hook 响应焦点事件
Install
npm
npm install --save @21kb/react-window-focus-hook
Yarn
yarn add @21kb/react-window-focus-hook
Usage
import reactWindowFocusHook from '@21kb/react-window-focus-hook';
@21kb/react-window-focus-hook
React hook to respond to focus events
Install
npm
npm install --save @21kb/react-window-focus-hook
Yarn
yarn add @21kb/react-window-focus-hook
Usage
import reactWindowFocusHook from '@21kb/react-window-focus-hook';