Yes but we're not even talking about Redux, and actually I think that React combined with other technologies like Redux is amazing, that's really when React shines. But it is true that JSX does not provide a lot of basic functionality that a template engine like the ones provided by Angular and Vue does, and that's because JSX was not designed to be a templating engine at all, that's just a fact and as your project grows it becomes an inconvenience. But if I just want a minimal framework that's simple, effective and at the same time fast, I'd pick Vue over React any time.
Svelte and Vue.js creators agree with me that templates and raw javascript are very different. Templates can be statically analysed enough, but javascript cannot:
I would still add to them that the main difference in statical analysability is caused by the facts that JavaScript is an imperative language and that HTML/Handlebars is a declarative one.
3
u/__env Nov 04 '16
As someone who has spent a lot of time working in angular, I feel like it's simply not true that this
reduces boilerplate any more than this
Directives and components both reduce boilerplate in the same way --
vs.
Seems like the same idea to me.
There is a ton, a ton, a ton, of boiler plate involved in writing redux, but that has nothing to do with the view layer.