👀 React app form validation #javascript #webdevelopment #tutorial #beginners

preview_player
Показать описание
Form validation is a tough problem. Let's see how reward early, punish late is a great pattern to validate inputs at the right time
Рекомендации по теме
Комментарии
Автор

That's why I use react-hook-form, it has everything you mentioned

hydranooni
Автор

Good video, compelling argument. Subscribed

alx.ndru
Автор

i like your videos, good quality content

hamburger
Автор

how about just debounce the onInput, that would not require a lot of conditional stuff to be kept in? let the user type and if user stops, you will see an error message,
plus remove debouncing on onBlur so that you will get the feedback if the user is extremely fast typer who tabs away as soon as he is done

ankitpradhan
Автор

validate on blur, remove errors on change

hayskapoy
Автор

Best practice - don't use freaking reactjs

yaroslavpanych
join shbcf.ru