• Custom hook that generates form change handlers for a given class and configuration.

    Type Parameters

    • TClass

      The class type.

    • TBody = TClass

      The body type (default is TClass).

    Parameters

    • clazz: (new (...args) => TClass)

      The class to generate form change handlers for.

        • new (...args): TClass
        • Parameters

          • Rest ...args: any[]

          Returns TClass

    • setForm: UseChangeHandlersConfig<TBody>

      The form setter function.

    Returns UseFormChangeHandlerMap<TBody>

    An object containing form change handlers for each field in the class.

Generated using TypeDoc