4 ms·
I love Angular for how it allows to seprate concerns cleanly. You view logic goes to templates and directives. Your data/bisness logic goes to controllers. When
by wonderwhy-er 12y ago
I love Angular for how it allows to seprate concerns cleanly. You view logic goes to templates and directives. Your data/bisness logic goes to controllers. When developer writes controller he thinks in terms of data he works with. When developer writes view he thinks in temrs of how to represent data available to him from scope.
I hate how in Backbone or just jQuery way you have mess of html, javascript and data manipulation in same class... Reminds of how messy frameworkless PHP looks...
Now looking at some React examples I see jsx files that do same mess... Model manipulation, some logic and html code in same file... WTF? How is that good?
May be someone can point me to a good example app of using React with good speration of concerns? Classical TODO MVC looks horrible...
https://github.com/tastejs/todomvc/blob/gh-pages/examples/react/js/app.jsx#L56 https://github.com/tastejs/todomvc/blob/gh-pages/examples/re...