2 ms·
The render function only renders to the virtual DOM, which React diffs with the previous rendered virtual DOM to decide what changes to the real DOM have to be
by dignati 12y ago
The render function only renders to the virtual DOM, which React diffs with the previous rendered virtual DOM to decide what changes to the real DOM have to be made. That's why the render function is, or should be, efficient.