Form reducer patterm



Is there an idiomatic way to do forms? Maybe similar to ES6 Reacts style of using a computed property name with setState?

At the moment I have a reducer action for every form input which feels very boilerplatey.


I’ve searched for doing this as well but it’s not typesafe and hard to do it with ReasonML. I’m using this library for dealing with form:


There is a new library, you might be interested in