|
|
|
|
|
by good8675309
1319 days ago
|
|
I get the purist push for Vanilla JS but for me it's still way too verbose. W3C has had decades to fix it and while it's improved it's still verbose as heck. Just implement the jQuery API into Vanilla JS and people would stop using jQuery. |
|
1. Added element.$("selector") and element.$$("selector") functions. Later one allows to work with JQ sets:
2. Added element.on("eventname" [,"selector"], handler) and element.off()These two allow to reduce need for JQuery to almost zero.
Also added JSX as a built-in feature to JS/runtime. So,
These three simple things, together with elment.patch(...JSX...) eliminate need for as JQuery as ReactJS almost completely.