Build this t-shirt order form: https://t-shirt-order-form.surge.sh.
Requirements
- When the form is submitted, hide the form and display a confirmation message with all of the data that was submitted. Feel free to format the submitted data however you'd like.
- A Reset button. This should reset the entire form to the default state. Don't use
<button type="reset">
or<input type="reset">
for this. Instead, add anonClick
handler to a button that changes all of the state properties back to the initial values. - For accessibility, every form control must have a
<label>
. Clicking on a label should put focus on the corresponding form control. - All form controls must be Controlled Components.
- At least 2 React components excluding the
App
component. This requirement is intended for you to get practice with creating your own reusable components and using props.
GitHub Classroom Submission Link
If you used Create React App for the assignment, please deploy your assignment to Surge using these instructions and include a link at the top of the README.md
file.