React Hook Form — Our Implementation

As mentioned in my React Hook Form 6 month update, I alluded to needing to implement our own, custom hook in order to accomplish our needs. At a high level, what was lacking from React Hook Form was as follows:

  • A clean way of updating the Redux store with the resulting changes
  • Immediate access to casted values
  • Formatting capability
  • Encapsulation of common input attributes

All told, it took about 100 lines of code to add everything we needed for the entirety of our…