npm i hook-click-outside
yarn add hook-click-outside
Main things not done yet:
- Move the example to typescript (with tests)
- Add better doc/changelog
React hook to detect clicks outside a node
npm i hook-click-outside
yarn add hook-click-outside
Main things not done yet: