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

455
Vistas
How can I edit a global variable in React?

**> I have a function to dynamically change the language of the page but

only the one of the "navbar" component is changed, for that I have created a global variable but the default value is not changed.**

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

0

You should never use plain global variables in React app as their change will not trigger rerender of the component tree. If you need a variable accessible globally in your app use Context or some state management library like Jotai or in more complex cases Redux.

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