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

176
Vistas
How to auto update cryptocurrency prices using coingecko api in react js

I'm new to react and want to create a crypto price tracker using coingecko api. I fetched the data and displayed it correctly but it don't update on it's own. When I reload the page then the data is updated. So, I used this code I found on internet

<meta http-equiv="refresh" content="30">

This code works fine but the user experience is so bad with this.

Is there any way I can fix it. I want it to work just like we usually see in crypto exchange app.

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

0

Not sure the API you mentioned is REST API or WEB SOCKET API. If it is Web Socket API, you would receive the update data from the server, and you just need to update your web components.

Otherwise, you might need to use the JavaScript setTimeInterval to keep call API for every 30seconds(example).

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