store and get data prop in html tags react code example Example: react data attributes event const removeId = e.target.getAttribute("data-remove");