SyntaxFix
Write A Post
Hire A Developer
Questions
Easier way to do it in one line of code
this.setState({ object: { ...this.state.object, objectVarToChange: newData } })