4 ms·
Top 100 run-time dependencies of react apps in terms of number of usage : https://airtable.com/shrfmD9l5rAW4Z03N/tbls8DesxQZT7VH0p/viwpuP25nIgGBO9eV https://air
by sAbakumoff 10y ago
Top 100 run-time dependencies of react apps in terms of number of usage : https://airtable.com/shrfmD9l5rAW4Z03N/tbls8DesxQZT7VH0p/viwpuP25nIgGBO9eV https://airtable.com/shrfmD9l5rAW4Z03N/tbls8DesxQZT7VH0p/viw...
jQuery is in 15th position.
- untog 10y agoHey, I never said people are doing it right. React completely removes the need for jQuery if you're using it correctly, because you should rarely if ever touch the DOM, and jQuery is... a DOM manipulation library.
- sAbakumoff 10y agojQuery nowadays is much more than DOM manipulation lib. In the latest version it gives the promises that are compatible with Promises/A+ spec. It has the powerful ajax calls functions.
- oddstorms 10y agoThey all moved on so they have no idea how good it is.
- sAbakumoff 10y agoI mean instead of adding polyfills for "fetch" api and "es6 promises" that brings a gazillion dependencies with them, one can simply add jquery package that has ZERO runtime dependencies(https://github.com/jquery/jquery/blob/master/package.json https://github.com/jquery/jquery/blob/master/package.json) and have ajax calls, promises and much, much more out of the box. I love jQuery.
- untog 10y agoOr you could add a fetch polyfill with zero dependencies: https://github.com/github/fetch/blob/master/package.json https://github.com/github/fetch/blob/master/package.json And a Promises library with zero dependencies: https://github.com/stefanpenner/es6-promise/blob/master/package.json https://github.com/stefanpenner/es6-promise/blob/master/pack... This is not as difficult as you're making it out to be.
- sAbakumoff 10y agoIt's still 2 dependencies in your project versus 1 dependency.
- untog 10y ago1 dependency that's 34.6KB minified. That's a lot more than the two separate dependencies, and besides, once you've gone to the trouble of adding a package.json to add one dependency, adding one more is a very small step.
- sAbakumoff 10y agowhere 34.6KB size came from? I don't get it