Skip to content

Introduce useEnform() hook

Compare
Choose a tag to compare
@moubi moubi released this 18 Aug 11:13
· 44 commits to master since this release
  • <Enform /> now uses the useEnform hook internally.
  • useEnform exposes the same API as the render props component.
  • can be used like so:
import { useEnform } from "enform";
const { values, errors, ... } = useEnform(initialValuesObject, validationObject);
  • no breaking changes
  • no changes in the bundle size