Id recommend figuring out what you dont know and then figuring out how to find the answer
i know i will recommend that also but i didn't get at all
If you find yourself still stuck, then you might need to dig deeper or backup and re-evaluate what you actually don't know, since if "learning" the answer to something doesn't actually give you the answer, your probably looking at the wrong question, or missing other understanding of another concept.
If your not sure how to remove items from an array, then find that out, if your not sure how to update state in react, look that up, if your not sure how to remove an item from an array then update its reference in another item look that up, if your not sure what pass by "value vs pass by reference" then look it up, if your not sure how to use "splice" then look that up, etc etc..
you are right
i am sorry
that i am look dumb
but i am really didn't understand
@Hussein90 We all make mistakes and we all need help at times. I personally appreciated the fact that you stuck with it.