gform-react

Hooks

The hooks gform-react exports - useFormSelector, for subscribing a component to a slice of form state without re-rendering on every change.

gform-react exposes its store through a selector hook, so a component re-renders only when the slice of state it reads actually changes:

See Reading Form State for the patterns these hooks enable.