1.0.3 • Published 5 years ago

react-offclick v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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 ;)

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago