This is a utility for taking a a set of fields
that will be used in forms, change/click handlers, etc.
to update state. It returns the initial state and the setState
function like useState does, however it also generates a change
handler for each field that is set up to work well with the
ChangeHandler interface.
This is a utility for taking a a set of fields that will be used in forms, change/click handlers, etc. to update state. It returns the initial state and the setState function like
useState
does, however it also generates a change handler for each field that is set up to work well with the ChangeHandler interface.Example:
This is alpha stage, use only where it's easy to revert since the API may change significantly.