DEV Community

Discussion on: ReactJS: What is the Virtual DOM?

 
marzelin profile image
Marc Ziel

Having this abstract description of a view allows you to reuse code. Technically, you can take a source code for a component and use it to render to both a web app and a native app by just switching the renderer from react-dom to react-native.

Compile-time optimizations were promised with the introduction of hooks. A small step was already made with the new JSX transform.

At the moment React team is busy working on a concurrent mode which is a different approach to improving performance. Instead of optimizing rendering itself you slice the work into small pieces that are executed asynchronously so that user interactions (typing, clicking, scrolling) are never blocked even if there's a lot to rerender so the app seems fast and responsive.