No matter what application you make with React, you will need forms if you are to collect any data from your users at all. Forms are in every app, and they are the key process for moving users knowledge into your application.
Unfortunately, when you seek guidance in React's documentation, all you get is this:
This is basically the summation of React's documentation. It simply tell you that this is how React should be used in handling users click or keystroke. React sets user's value to state and then use that state as value for the input. The end.
Huh? That's it?
Yup.. as for the rest of the issues you will face when building form for an application with complex business logic, well, they are up to you. Like doing:
- Displaying errors
- Keeping track of form fields
- Handling submission
- Changing form logic through inputs
- Populate form with data from database or API
- Organizing form code
- Stay sane while doing all of the above 🤯
I've had the privilege of building a complex form with React where I need to gather business registration data from my users. In this book, I will share everything I have learned to do all of the above. Plus, I will talk about evaluating form libraries and how to integrate them into existing form. With this book, you'll be making forms with React in no time.
We will use a real form registration example and there will also be source code for you to study and examine 🙌