detect-outside-click-react
v2.2.0
Published
Wrapper component to detect outside click
Downloads
31
Readme
detect-outside-click-react
Wrapper component to detect outside click in React
Setup
npm install --save detect-outside-click-react
yarn add detect-outside-click-react
Usage
import OutsideClick from 'detect-outside-click-react';
...
<OutsideClick close={() => { // anything here }}>
{children}
</OutsideClick>
...