Hacker News new | ask | show | jobs
by dignati 4104 days 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.