Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!