Conversation

This Tweet was deleted by the Tweet author. Learn more
Replying to and
Beautiful and well written. I believe React compares to React elements from previous renders, not to the DOM itself. So β€œcompares its own version of the DOM to the real DOM” is not right. Related code if it helps: github.com/facebook/react github.com/facebook/react
1
Our components -> we pass top level component to React DOM package -> it uses Fiber to unwind the component tree -> our components render React elements -> React reconciler compares between elements -> updates are committed to the DOM
1
Show replies