SyntaxFix
Write A Post
Hire A Developer
Questions
this.setState({ items: this.state.items.map((item,index) => { if (index === 1) { item.name = 'newName'; } return item; }) });