For this recipe, we are going to create a simple Todo List to use a form using our local state.
Creating a controlled form with the local state
Getting ready
For this recipe, we need to install the uuid package to generate random IDs, as shown in the following code:
npm install uuid
How to do it...
Let's create our controlled form by following these steps:
- First, for the Todo List, we will create a new component called Todo into src/components/Todo/index.jsx. The skeleton we will use is shown in the following code:
import React, { Component } from &apos...