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

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

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 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