3 ms·
Use-Click-Away (React hook)
- geobde_ 4y agoReact hook to detect click or touch events
- zenosmosis 4y agoDoes it really respond to touch events? Looks like you're only binding mousedown. https://github.com/geobde/use-click-away/blob/master/src/useClickAway.js https://github.com/geobde/use-click-away/blob/master/src/use...
- geobde_ 4y agoyep, just for now but easily can pass the event as parameter