• References
  • Decorate input border when there is error (with shadcn’s form)
  • Nested Form Array nhưng index không update UI đúng như code
  • Custom validator (1 field based on another filed, with zod) ← also customize path of errors
  • Nếu như form không tự update mà chỉ sau khi submit mới validate (dùng với shadcn chẳng hạn)
  • zod với react-hook-form: disable 1 control tuỳ thuộc vào 1 control khác (nếu active is true thì ko validate 1 control, ngược lại thì validate nó)