Handlers
Last updated
Was this helpful?
Last updated
Was this helpful?
Handlers are returned from which then can be spread to react element as show in .
onClick
onClick
?Because it leverages built in event listener which can also detect mobile tap event.
This way we can get rid of edge cases when combining onTouchStart onTouchEnd onTouchCancel onTouchMove
events.
Also this approach greatly reduce package size as well as increase speed and flexibility because although this hook was designed for detecting double tap it can also detect double click.