Today I was debating with my colleague on how React is fast and in what sense? It was interesting discussion and we thought of exploring on this context, hence blogging it for my reference!
I assume, you’ve knowledge on React JS framework before reading this article!
React is FAST in the sense of DOM updates!!!
How React is fast in updating the DOM (Document Object Model) ?
- Tracks for the changes happening in the react component and updates the Virtual DOM.
- Reconciliation happens with the actual DOM for the changes in the Virtual DOM.
It’s all the React magic of transforming the model changes to views!
I’ve come across few blogs posts where they explained the inner details of the React JS and Virtual DOM. Here are few of them –
Video – Tech Talk : How React.js works