You may have noticed in the previous chapter that we used some simple forms with events, but in this recipe, we will see this topic in more depth. In Chapter 6, Creating Forms with Redux Form, we are going to learn how to handle forms with Redux Form.
Creating form elements with events
How to do it...
Let's create a new component called Person:
- The skeleton we are going to use for this component is as follows:
import React, { Component } from 'react';
import './Person.css';
class Person extends Component {
constructor() {
super();
this.state = {
firstName: '',
lastName: '',
email: '',
phone: ''
}...