7 ms·
yeah, I'm very glad that we have a dozen and a half Javascript libraries that aren't jQuery instead!
by distantsounds 3y ago
yeah, I'm very glad that we have a dozen and a half Javascript libraries that aren't jQuery instead!
- danShumway 3y agoGP isn't saying you should use React, they're saying that if you don't need React you probably don't need jQuery either and you might as well just use pure Javascript. Most of the functions people used jQuery for are natively supported in every major browser that runs Javascript, and the few that aren't have decent polyfills. I mean, let's be real; most of what people were using jQuery for was stuff like `querySelector`, `closest`, `classList`, etc... For those people, pure Javascript is JQuery now. If you don't want a framework and you don't want reactive/declarative interfaces, then you probably don't need a library. I would say the same thing (maybe to a lesser degree) about "standard" libraries like Lodash. Native Javascript has a `reduce` function now, it's widely supported. And if you have to target any of the very few browsers that don't have it, then polyfilling is (usually) the better choice. See also Blueberry and promises; just use JS promises, they're fine.
- gunapologist99 3y agobluebird?
- danShumway 3y agoYep, good catch :) It's been a while since I ran into it.