get div by data-id +react code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");