Appearance
Customer Details 📝
A screen for the user enter your personal information to place in the order.
Form
There are 3 fields to input data, first name, last name and email. By default, the first and last name are required and email is optional, which can be easily overwritten by parameters.
On form submit, all the fields are validated based on the requirement settings passed by parameters through the context provider. Besides that, the email field has an additional pattern validation when a value is present.
When submit validation passes, values are stored in a recoil store.