react find values by attributes from all elements code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");