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

128
Vistas
Reactjs: avoird rerender component for every update state

This is my code:

<SymbolOverview colorTheme="light"
    autosize
    symbols={[["COINBASE:" + symbol1 + "USD"]]}
    wickDownColor="#F45B7E" />

<SymbolOverview colorTheme="light"
    autosize
    symbols={[["COINBASE:" + symbol2 + "USD"]]}
    wickDownColor="#F45B7E" />

If I set setSymbole1("BTC"), my component for symbol2 changed too.

I want only re render component for symbol1.

By googling I found useMemo and useCallback, but I cant understand these.

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

0

If you components in the same page, When all page will be rendering which mean both of them will be rendering.

What you do it's use debounce to change the state "on the fly" for one component.

ref : https://www.freecodecamp.org/news/javascript-debounce-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