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

274
Vistas
How reactjs works? How react reduce re-rendering?

How react works I'm new to reactjs I've been following this topic for the last 2 months, and got some information by googling about it,

React Web apps download all static assets and reactjs library to client at first reload, then React controls the actual DOM. React renders the DOM according to the state changes. React has a virtual DOM, which is a copy of real DOM which lives in memory, changing virtual DOM is less expensive, changing actual DOM is more expensive.

I got all these above information by reading different blogs, my questions are:

  • how we can say that react is faster than a traditional website?
  • virtual DOM has to render actual DOM, so does this also cost memory?

Please someone with good knowledge in React and its architecture helps me find out the answer.

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

0

chaging the actual dom is expensive, so why not store the images of dom in memory and update it according to where actually the dom got updated. virtual dom stores the whole app as an object and whenever there is a state change a new virtual dom object is created out of the previous one, then react does comparison of the previous to the new one using diffing algorithm. this overhead is not much expensive compared to just updating the browser dom directly on small changes.

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