how to get the data attribute value in jsx code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");