3 ms·
Yup that's the argument mentioned: React is "simpler", "anyone can see"... Brevity isn't simplicity. The simplicity is being easier to install, build, read abo
by msane 10y ago
Yup that's the argument mentioned: React is "simpler", "anyone can see"...
Brevity isn't simplicity. The simplicity is being easier to install, build, read about, debug, consume APIs with, send data between, talk about to other developers... and yes, "reason" about.
myMod.component('Foo', {
template: '<h1>{{$and.better.templating}} {{see()}}</h1>',
controller: function() {
var and = {this_one: 'does_stuff'};
}
});
- thegayngler 10y agoThis is not easier to reason about than returning jsx IMO... It's only 1 of the ways to build an angular 2 component. The website tutorial is using decorator syntax. Typescript Angular 2 documentation. What's wrong with just learning JavaScript and less Angular specific syntax and tooling. Maybe I'm wrong but I feel like Angular likes to force projects to become big monoliths where people who don't understand the problem being solved are trying to architect a solution for all of the problems. React does have jsx shock and JavaScript tooling fatigue. However, now that React is mature JavaScript tooling decision fatigue should be less of an issue. You aren't relying on one company to solve problems. You have a community solving problems for themselves. As they need it they can add it or take it away.
- warfangle 10y agoWhy aren't you just using an interpolated string?