Skip to content
Discussion options

You must be logged in to vote

Hi @Nostalginen,

Here's the better day to do it.
https://stackblitz.com/edit/chakra-ui-react-hook-form-demo-spr2eh

Things to note:

  1. Consider make use of React Hook Form's Controller coz I personally don't prefer using the usual UseForm' register. as it is getting messy.
    https://react-hook-form.com/docs/usecontroller/controller
  2. Consider integrating and make use of Yup or Zod Resolver to be use in React Hook UseForm resolver for better validations.
    https://react-hook-form.com/advanced-usage
  3. Since you're using Chakra UI, better to use Chakra's NumberInput component for numeric values separated from the usual text input.
    https://v2.chakra-ui.com/docs/components/number-input

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nostalginen
Comment options

Answer selected by Nostalginen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants