I am new to react Js. I want to remove an element from the array .,
I have an array which is like ,
array = [{ Id: "L0", value="asas"}]
So, Now What I have is that this value is in this.props.array.
Here I get the id which I should remove, So How can compare that array objects Id and remove that particular.
Because I don't want to mutate that array.
Thanks in advance .
onRemoveRow(e, id) {
}
For adding ,
const tempObj = {
id: 'L' + id,
technologyId: 0,
technology: '',
type: '',
numberOfQuestions: ''
}
const addData = [...this.props.lowData.Low, tempObj];