read html tag attribute data with react javascript code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");