useCallback when working with uncontrolled forms #1788
Unanswered
enricoschaaf
asked this question in
Q&A
Replies: 2 comments
-
i don't have much context, but you don't need to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
For example I saw this example in the Next.js docs and was wondering why useCallback() was used? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I just work with really simple forms I don' t import react-hook-form und just use a normal uncontrolled form. I see a lot of examples wrapping the function that handles the submit in a useCallback, does this only have performance improvements when using controlled forms or should I also to that when working with uncontrolled forms?
I thought there is probably no one better to answer this question than the people there. 🙈
Beta Was this translation helpful? Give feedback.
All reactions