Skip to content

Commit 5ae1bd6

Browse files
committed
fix/useDoubleClick 🧊 [fix]: useDoubleClick 🧊 Properly destructure ref in useDoubleClick demo
1 parent 3db89b6 commit 5ae1bd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/core/src/hooks/useDoubleClick/useDoubleClick.demo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useCounter, useDoubleClick } from '@siberiacancode/reactuse';
22

33
const Demo = () => {
44
const counter = useCounter();
5-
const doubleClickRef = useDoubleClick<HTMLButtonElement>(() => counter.inc());
5+
const { ref: doubleClickRef } = useDoubleClick<HTMLButtonElement>(() => counter.inc());
66

77
return (
88
<>

0 commit comments

Comments
 (0)