3 ms·
jQuery is the last time I felt a library doing magic! Nothing has matched the feelings since then.
by maxpert 9mo ago
jQuery is the last time I felt a library doing magic! Nothing has matched the feelings since then.
- Minor49er 9mo agoNot even modern vanilla JavaScript?
- marticode 9mo agoIt's fairly close now but so much more verbose: ie document.getElementById('theID') vs $('#theID')
- majewsky 9mo agoNearly every time I write something in JavaScript, the first line is const $ = (selector) => document.querySelector(selector). I do not have jQuery nostalgia as much as many others here, but that particular shorthand is very useful. For extra flavor, const $$ = (selector) => document.querySelectorAll(selector) on top.
- SahAssar 9mo agoconst $$ = (selector) => Array.from(document.querySelectorAll(selector)) is even nicer since then you can do things like $$('.myclass').map(e => stuff)