I dont know how to select function react in document.getElementsByClassName.
I have this
document.getElementsByClassName('card-list__card grid-layout-item grid-list-item')[0]
return
"__reactInternalInstance$6xvjhfpf2k": Object { tag: 5, key: "545570876", elementType: "div", … }
This function __reactInternalInstance as random variable.
when I reload the page the function changes name how I can select this to recover the key ?
document.getElementsByClassName('card-list__card grid-layout-item grid-list-item')[0].__reactInternalInstance*
is there an equivalent?
Thank's for your help.
Use an id and use document.getElementById("yourIdGoesHere")