Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

127
Vistas
How to refresh one component without refreshing the page in react?

I have a react website which reads data from a source file (stored in /public) and displays it in an iframe. This data is changed by an external flask server when certain events are fired from my page. My problem is that when this file is changed, the entire page reloads, which breaks some functionality. I tried doing npm run build and serving the build, but then the iframe doesn't update at all when it's changed. Is there any way to have the iframe refresh without letting the page refresh?

7 months ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.