Skip to content

Commit 708ea12

Browse files
committed
docs(use-long-press): Unify basic example in README with other libraries
1 parent 5b968b3 commit 708ea12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/use-long-press/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ import { useLongPress } from 'use-long-press';
3535

3636
const Example = () => {
3737
const handlers = useLongPress(() => {
38-
// Your long press handler
39-
alert('Long pressed!');
38+
// Your action here
39+
console.log('Long pressed!');
4040
});
4141
return <button {...handlers()}>Press me</button>;
4242
};

0 commit comments

Comments
 (0)