- Published on
Data Validation with Superstruct
I came across Superstruct from the React Hook Form documentation - in particular the schema-based form validation. Since I wasn't thrilled about burying form field validation logic inside JSX, I choose to use Superstruct. In this short post, I'll walk through an example of how to use Superstruct for simple to slightly more complex data validation.