wesonweb / houseyourplants_app

0 stars 0 forks source link

Create plant form #13

Closed wesonweb closed 9 months ago

wesonweb commented 9 months ago

Form to capture the data needed to create a plant in the db

Spent some time thinking of the best way to create the form and whether to create the form and then manage data input and state etc. Started off using FormData but found it not to work so well for radio and checkbox inputs. After a bit of research I chose React Hook Form which creates an object from all the data inputed.

Screenshots below show the data as entered in the form and the console log of that data. plantForm

consoleLog

Other commits

Next steps

Will update form styling etc further down the line.