read data attribute react code example Example: react data attributes event Click to copyconst removeId = e.target.getAttribute("data-remove");