How to handle validations involving several fields with just React
It’s often enough to validate each field in isolation. But every once in a while, you need to validate several fields together:
It’s hard or impossible implement that with field-level validations without unnecessarily complicating the code. However, with a simple, controlled validation architecture, it’s pretty trivial.