I (and I am pretty sure you as well) sometimes get the feeling that there
is too much boilerplate when it comes to implementing forms with React and
Redux. Connecting actions, validations, state updates and rendering for a
simple form can be a tedious job. I know there are people working on
good wrappers but I am not sure we are there yet.
I hope that over time we will
get better abstractions that will remove this boilerplate for simplest
situations. And we will only need to focus on more complex or unusual
interactions which differ from the default of “update of this input means
update of that property in the state”.
In the meantime I wanted to present (perhaps obvious) techniques that
can reduce the amount of code.
continue reading →