Slide 12
Slide 12 text
Handling changes
handleChange = (event, index) => {
const updatedEducation =
this.state.education.map((education, educationIndex) => {
if (index !== educationIndex) return education;
return { ...education, [event.target.name]: event.target.value }
});
this.setState({ education: updatedEducation });
}
12