4 ms·
> The thing is, in any real project where you need a front-end framework, you will need modules very soon. Sure, and modules are good even if you didn't need d
by nailer 10y ago
> The thing is, in any real project where you need a front-end framework, you will need modules very soon.
Sure, and modules are good even if you didn't need data binding at all. But the data binding and the module system you use are orthogonal and CommonJS/npm is still larger than any other module system by 10x, maybe 100x, maybe more.
- spion 10y agoRight. CommonJS is great, I actually like it more than ES6 modules. But even with CommonJS you still need the bundler and the build step. You can get data binding in React with MobX, which pretty much gets you on par with Vue: https://mobx.js.org/getting-started.html https://mobx.js.org/getting-started.html . If you don't like how anemic setState is, and don't like the boilerplate / straightjacket of Redux, MobX is the way to go. Admittedly, React's simpler options are harder to find :)