r/programming • • Sep 15 '16

Angular 2.0.0 officially released

https://www.npmjs.com/~angular
1.3k Upvotes

535 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 17 '16

Why would you extract the template into a seperate file? React is a view library, the component is your template. And how is that "bad engineering"? You can use React without JSX. It's awful.

At the end of the day, complaints like this just sound like someone is blaming the tool because they don't understand it.

1

u/Eirenarch Sep 17 '16

First of all I might like my template and the code that drives it separate (as a matter of fact I do). More importantly a tool I might like may not support JSX. For example just about the time I worked on the React project it was impossible to use TypeScript because TypeScript didn't support JSX yet (they released support shortly after). Maybe I have that beautiful IDE with great support for JS that I can't use because nobody built JSX specific support? Note how neither of this is the case with Angular 2. You can have your template with or without the code, and you can use whatever tools you like because no special support is required for their templating mechanism.

It is not tool blame case. In fact the React community suffers from reverse of the tool blame - Stockholm syndrome. If React doesn't allow something then certainly no one needs it and tools that do not support the React way must be inferior.