how to select all elements that have data attribute in react code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");