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 ...
Get ASP.NET Core 5 and React - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.