Thursday, January 19, 2023

83/365: Form Props

 Today in the capstone project I separated the table booking component into two separate forms. All the state and API calls are handled by the Table component. This stateful data is passed as props down to the BookingForm component which then uses them to render accordingly. Next I need to add some client side validation to make sure the forms are properly filled out. I'll probably do this with the Formik library and a data schema with Yup. I've used both these libraries before and like them.

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...