Hacker News new | ask | show | jobs
by dwg 594 days ago
Agreed.

We try to use browsers standard features whenever possible. Despite looking into using the built-in validation, it's never been worthwhile. Too many gotchas, and we end up using a library to be able to easily support more complex checks anyway.

Furthermore, using a library opens up, in some cases, the possibility of sharing some of the validation code between front and backend.

In particular this article seems to work around one of the issues with `useLayoutEffect`. Not something that should be done lightly.