How does React improve performance?

It uses a virtual DOM and updates only the necessary parts of the UI efficiently.