Hacker News new | ask | show | jobs
by janci 1492 days ago
If I read this correctly, all the route components are evaluated (i.e. rendered to virtual DOM) and only then one of them is selected and shown (i.e. rendered to HTML DOM). This seems utterly inefficient, even for educational example.
1 comments

You read that incorrectly. Only the active route component is returned by the Router function, therefore React's render() won't do anything with the others.