React Outside
A higher order component for React for listening to clicks outside of the component. Supports classes and decorators.
Installation
npm i react-outside
How to use
Config
/** * @param * @return */
Usage
;;; @ // `click` is the default handler but you can set different event names { // Handle the event } { return <ul className="dropdown-menu"> <li>List items...</li> </ul> ; }