Hacker News new | ask | show | jobs
by AgentME 4055 days ago
Whenever a change is made to the raw DOM, the change has to be immediately visible to the code running after it. React sacrifices this.

When the DOM is treated as the source-of-truth for the page's information, the synchronously-visible changes are very useful. However, getting away from treating the DOM as the source-of-truth, which React forces you to do, gets you a lot of power as changes to the DOM can be batched more efficiently automatically.