Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda