Chapter 6: Working with Forms
Forms are an important topic because they are extremely common in the apps we build. In this chapter, we'll learn how to build forms using React controlled components and discover that there is a fair amount of boilerplate code involved. We will use a popular library to reduce the boilerplate code. This will also help us to build several forms in our app.
Client-side validation is critical to the user experience of the forms we build, so we'll cover this topic in a fair amount of depth. We will also cover how to submit forms.
We'll cover the following topics in this chapter:
- Understanding controlled components
- Reducing boilerplate code with React Hook Form
- Implementing validation
- Submitting forms
By the end of this chapter, you will have learned how to efficiently create forms with their key ingredients.