0.0.1 • Published 1 year ago
react-use-double-click-confirm v0.0.1
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.
0.0.1
1 year ago