Skip to content
Advertisement

Why I cannot remove the element of the array of useState hook

This is the code,

JavaScript

Please check the function deleting in the filter section I am trying to delete the elemt from the array using setarray.

This is the codesandbox link

https://codesandbox.io/s/silly-neumann-b0foos?file=/src/App.js:0-1072

Advertisement

Answer

e is an object having index as prop… so its e.index

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement