React UseState Update Object dans le tableau d'objets
this.setState({items: this.state.items.map(x => x.id === someId ? {...x, attr:'val'} : x)});
Delightful Dove
this.setState({items: this.state.items.map(x => x.id === someId ? {...x, attr:'val'} : x)});