react get data from dom code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");