I have a question about the return values of useCounter. #640
hekirekiissen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The return value of the
useCounter
is as shown in the code below.In this part, I found a difference from the return value of other hooks.
For example, the return value of the
useStep
in the usehooks-ts package is in the following format.I think I can change the useCounter like useStep. Please refer to the code below.
For code consistency, I propose to consistently match the return value format of these hooks.
Or, is there a reason why the return value format is different for each hooks?
Thank you for reading my simple question!
Beta Was this translation helpful? Give feedback.
All reactions