Ever wondered how validation libraries work? This article by Kristofer Selbekk will tell you how to build your very own validation library for React step by step.
This is first part of series of articles which include: the basics, the features, the experience.
The content is split into:
- Designing the API
- Storing the form state
- What’s a reducer?
- Validating our form
- How to pick validator functions
The code examples in CodeSandbox are provided with detailed explanation for each of above steps. You will be able to create a simple, usable and pretty cool validation library.
You will also get deeper understanding of how other libraries implement “the magic of validation”.
[Read More]