3 ms·
Not really. I think a key distinction is summed up in this quote: "Angular 2 continues to put “JS” into HTML. React puts “HTML” into JS." See: https://medium.
by dev360 10y ago
Not really. I think a key distinction is summed up in this quote:
"Angular 2 continues to put “JS” into HTML. React puts “HTML” into JS."
See: https://medium.freecodecamp.com/angular-2-versus-react-there-will-be-blood-66595faafd51#.1kuf8qlpd https://medium.freecodecamp.com/angular-2-versus-react-there...
This influences to some extent what you can do with the frameworks and how your code is organized. I like the fact that since my rendering is essentially JS in React, then I can structure my code better with OO to solve problems (inheritance where appropriate, helper classes, patterns etc). In Angular, its just a awful mess of ng-* statements for flow of control. All you can really do to tame it is to use composition or to mix-in behavior via directives.