Angular 2 versus React: There Will Be Blood
Cory House
3.5K202

The problem with having a complete programming language within your template language is that you lose the ability to statically analyse exactly how it can change. The only way to know for certain the structure of the HTML that a component’s render function will generate is to execute the code. In contrast, by being more restrictive, Angular 2’s template syntax makes it clear to tools exactly how the resultant HTML can change. This lets the Angular template compiler generate extremely fast DOM update code, ahead of time, with the need for runtime performance hacks like the virtual DOM.

Like what you read? Give Jon Rimmer a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.