Hacker News new | ask | show | jobs
by ratww 2106 days ago
There's nothing wrong with Vanilla JS and jQuery, but if you need more interactivity, it's possible to use modern libraries like React (with htm [1]) or Vue without a compilation step, all with zero dependencies. The size of the libraries is only 10k to 20k bigger than jQuery.

If you need even less bytes, then Preact is also an option (also with htm [1]), and it clocks at around 3k + 400 bytes for htm.

If you're only targeting modern browsers with ES6 support you can even use `import from` statements.

[1] https://github.com/developit/htm