UNPKG

react-formal

Version:

Classy HTML form management for React

16 lines (15 loc) 410 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _BindingContext = require("./BindingContext"); /** * Returns the current form value and onChange handler for the Form */ function useForm() { const ctx = (0, _BindingContext.useBindingContext)(); return [ctx.formValue, ctx.updateFormValue]; } var _default = useForm; exports.default = _default;