1.0.3 • Published 6 years ago

react-offclick v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago