Tracks clicks outside its children.
import {OutsideClick} from 'libreact/lib/OutsideClick';
<OutsideClick onClick={}>
<div>Don't click here.</div>
</OutsideClick>
onClick
— event called when user click outside of its children.event
— optional, string, event name subscribe to, defaults tomousedown
.