Handlers
Handlers are returned from bind object which then can be spread to react element as show in example.
onClick
Why 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.
Last updated