bilingualgeneration / bili-app

1 stars 0 forks source link

add react hook forms and build forms on sign up and login page #13

Closed jonathan-chin closed 1 year ago

jonathan-chin commented 1 year ago

here is a seemingly good guide: https://dev.to/ionic/using-react-hook-form-with-ionic-react-components-2aab try to stick with the register method; if you need to use the controller method detailed, talk with the team first.

jonathan-chin commented 1 year ago

I found a guide that shows the principles of what we want. there's a related github repo.

I pushed a new branch called chin-convenience-component that has the beginnings of an Input convenience component. right now, it has 3 integrations:

  1. react-hook-forms
  2. label prop
  3. helperText prop

we can continue building it out as needed. I think there are other things the component needs before @amak-code can use it in signup / login, primarily passing in error messages. but once it's good to go, you can proceed.

jonathan-chin commented 1 year ago