React js validation
https://react-hook-form.com/
https://www.youtube.com/watch?v=LIkIM5u1mCk&t=382s
npm i react-hook-form
npm i @hookform/resolvers
npm i yup
https://www.youtube.com/watch?v=t2ypzz6gJm0&t=120s
https://react-hook-form.com/get-started
https://www.youtube.com/watch?v=LIkIM5u1mCk&t=79s
https://react-hook-form.com/
use ref hooks:(autofocus)
every time when component render useeffect()
ref is similar to state
that persists b/w your render
but diff b/w state and ref is
does not cause a component to change
most use case of ref:
Reference element inside Html.
like autofocus...
we can use alternate of onChange.
Comments
Post a Comment