Introduce useEnform() hook
<Enform />
now uses theuseEnform
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