r/javascript • u/Kiwi_Taster • Oct 22 '19
Dead-Simple JavaScript Components w/o the overhead
https://medium.com/@patrickwees/flexible-javascript-components-w-o-the-overhead-b0c5c0dcb42e?source=friends_link&sk=99c4370a3ae8aa2c7f990401185240a3
1
Upvotes
16
u/braindeadTank Oct 22 '19
Your "lib" vomits a string into
innerHTMLand thenforces you to do everything else by hand, except
"managaging containers" - which honestly seems random and useless
it's a 100 lines of code lib that have a dependence on 80kb jQuery here goes your "no overhead"
the dependency on jQuery is not listed in any way
not only that, you assume that
$is jQuery, you didn't even bother to writejQueryin your code, which means it will sometimes randomly breakThanks, I hate it.