I have problem with removeItem function (it should remove current that button is nested in, and item from array on this.state.list), no code currentl
in my solution eg:
const remove = (i) => { const arr = data.filter((item) => item.name !== i); setData(arr); };
I filtered the items that are not removed and set again the state