@21kb/react-element-focus-hook

React hook to respond to focus events

Usage no npm install needed!

<script type="module">
  import 21kbReactElementFocusHook from 'https://cdn.skypack.dev/@21kb/react-element-focus-hook';
</script>

README

@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';