deleteRow={() => this.deleteRow(i)}
deleteRow(index) { const productsList = [...this.state.productsList]; productsList.splice(index, 1); this.setState({ productsList }); }