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