Core library containing hooks and utility functions designed to streamline the integration of react-hook-form with UI frameworks, by managing boilerplate code.
npm install @piplup/rhf-coreThis package builds upon react-hook-form by offering additional utility hooks such as useControllerAdapter, useFieldStateAdapter, useFormStateAdapter, useFieldState, useFormState, useFormSetFocus and useFormReset. These hooks simplify component composition and help reduce boilerplate code.
``bash`
npm install @piplup/rhf-core react-hook-form
or
`bash`
yarn add @piplup/rhf-core react-hook-form
or
`bash``
pnpm add @piplup/rhf-core react-hook-form
- useFieldState
- useFormSetFocus
- useFormReset
- useControllerAdapter
- useFieldStateAdapter
- useFormStateAdapter
Refer to storybook examples for list of available components and its usage.