I am new to react and I need your help.
I have shared a sandbox link, In that everything works perfectly. But when we add couple new row(by clicking + at rightmost columns of the row) then if we remove some row(by clicking - at rightmost columns of the row) and then again add a new row then edit that row cell I am getting Cannot set property error. I know I have to do some changes in the handleDelete function but not getting what exactly to do. So is anyone experts here, please help me out.
And regarding Icon except the last row every other row should have - icon.
Thank you. Comment if you need any clarification.
Sandbox link: https://codesandbox.io/s/suspicious-microservice-qd3ku?file=/index.js