react-use-double-click-confirm
v0.0.1
Published
Double click confirmation hook for React
Downloads
2
Readme
React useDoubleClickConfirm
Hook
Usage
const [{ progress, status }, animation] = useDoubleClickConfirm(() => {
console.log("double click confirmed");
});
- Render with
progress
&status
- Call
animation.click()
to trigger the animation
Or use createDoubleClickAnimation
to implement your own hook.