3 ms·
React makes you a better javascript developer, no doubt. The problem I have with other frameworks (Angular, Ember) is that they use a templating language, inste
by kentor 11y ago
React makes you a better javascript developer, no doubt. The problem I have with other frameworks (Angular, Ember) is that they use a templating language, instead of Just Javascript™. After using React, I never want to touch a templating language ever again. I don't want to learn a DSL to do simple things like loops + filters and conditionals, which I already know with Javascript. I don't want to learn their special scoping rules, something which Javascript has already defined. And I seriously doubt debugging templates is easy.
- antoaravinth 11y agoThats a very good point on scopes and loops. Thanks
- hex13 11y agoThe irony is that React is controversial because of mixing HTML and JS but in Angular you also are encouraged to mix JavaScript and JavaScript-like expressions with HTML (e.g. in ng-click or when setting ng-class conditionally). And you must insert some weird looking DSL to HTML. So I think that React way of using plain old JavaScript as a DSL for creating HTML components is indeed more elegant and more expressive that Angular way of injecting an artificial created and limited DSL and chunks of JS-like code to HTML trying to figure out how to make things properly.
- antoaravinth 11y ago@kentor: Looks like learning React is far more easier. But learning Flux looks a bit involved process. Not great samples and books available out there. Any idea, where to get started?
- kentor 11y agoI would recommend Redux for data management. I've been using that at work and it's been great. Their docs are also pretty good. Maybe a good place to start is with one of those boilerplate repos that have React + build tools already set up: https://github.com/gaearon/react-transform-boilerplate.. https://github.com/gaearon/react-transform-boilerplate... Then you just add the stack that you want, like redux and react-redux with npm install.
- antoaravinth 11y agoRedux looks stunning. Thanks a lot for suggesting it.