masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link

Refactor user input validation code #263

Open masakudamatsu opened 3 years ago

masakudamatsu commented 3 years ago

See https://github.com/kentcdodds/react-fundamentals/blob/main/src/final/06.extra-2.js

In particular, see how the error state is updated as null or the error message string, depending on the error status.