react how to get data value from html element code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");