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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.