Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
How to select react function in getdocumentbyclass?

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.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use an id and use document.getElementById("yourIdGoesHere")

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda