You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- a RefCallback __cbRef__ attached to a button __Press me__. It is returned from _useLongPress_ hook that has a cb a function to update __pressCounter__ state and _normalPress_ option to update __clickCounter__ state.
9
+
- it renders a div with __Press me__ button and two p elements that display __pressCounter__ and __clickCounter__.
10
+
11
+
When the button is clicked for less than a second, _normalPress_ callback is executed, otherwise _long press_ callback is executed.
> - a RefCallback __cbRef__ attached to a button __Press me__. It is returned from _useLongPress_ hook that has a cb a function to update __pressCounter__ state and _normalPress_ option to update __clickCounter__ state.
42
+
> - it renders a div with __Press me__ button and two p elements that display __pressCounter__ and __clickCounter__.
43
+
>
44
+
> When the button is clicked for less than a second, _normalPress_ callback is executed, otherwise _long press_ callback is executed.
0 commit comments