π Start UI [web] is an opinionated UI starter with π¦ TypeScript, βοΈ React, β«οΈ NextJS, β‘οΈ Chakra UI, π¦ tRPC, β² Prisma, ποΈ TanStack Query, π Storybook, π Playwright,π React Hook Form,β½From the π» BearStudio Team
1.36k
stars
128
forks
source link
Cleaner React-Hook-Form implementation #475
Closed
ntatoud closed 1 month ago
In the Form and Fields components declaration, wouldn't it be better to :
Remove the control props from FormFields in Forms.
Because the fields are used in a FormProvider context, there is no need to pass the
control
prop to the FormField component Exemple :