1.0.3 • Published 5 years ago
react-offclick v1.0.3
react-offclick
Detects clicks that exist outside of react component.
Installation
npm install react-offclick --save
Usage
import OffClick from 'react-offclick';
const MyComponent = props => {
return (
<OffClick handler={() => console.log('Clicked off the component!')}>
// rest of codes
</OffClick>
)
}
That simple ;)