event target data atributes
event.target.getAttribute("data-sortorder");
event target data atributes
event.target.getAttribute("data-sortorder");
react data attributes event
const removeId = e.target.getAttribute("data-remove");
react get data attribute from element
<div data-id={someId} >Test</div>
const id = e.target.getAttribute("data-id");
//alternate to getAttribute
const id = e.target.attributes.getNamedItem("data-id").value;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us