3
1 Comment

Power of Schema (Day 175)

Working on form validation today, and it's so much fun to validate through schema! I've been using a simple schema called Yup, very minimal, but works for most cases.

Frontend work has been a fixed pattern for my project: finding the right pattern, refactor, making it brainless to add or remove fields or create new forms, then reduce boilerplates.

And for the backend APIs, it's been quite similar: defining input and output schemas, transforms and reassemble data, validate and return.

on September 29, 2020
  1. 2

    I did frontend work as a side project for a good 6 months with React Hooks, and one of the best things I remember was having fun with Formik & Yup. Great tools that are super easy to understand!