Uniform way of writing validation logic
Both on the client and server side.
Uniform way of writing validation logic
Both on the client and server side.
Grouping and cloning
Don’t repeat yourself. Write repetitive validation steps for fields of different forms for both client and server side once in one place. Allows to write validation logic of any complexity with UI side effects bound to validity states.
Straightforward API
No need to search through a lot of method names, string constants, config options. Just think of what checks should be performed, where, and with what side effects.
Functional style
Suits for those who think everything should be a function.
Good for educational purposes
Eases cognitive load from using different solutions for the client and server side. Abstracts away common boilerplate code and necessary but easy-to-forget operations.