SyntaxFix
Write A Post
Hire A Developer
Questions
I had the same problem. Here's a simple solution that works !
const newItems = [...this.state.items]; newItems[item] = value; this.setState({ items:newItems });