how to write in react js data-min attr code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");