I have a component that stores a contact object as state - {firstName: \"John\", lastName: \"Doe\", phone: \"1234567890} I want to create a form to edit this object but if I
Here is generic one;
handleChange = (input) => (event) => { this.setState({ ...this.state, [input]: event.target.value }); }
And use like this;