Hacker News new | ask | show | jobs
by sapling-ginger 882 days ago
For an article about "lightweight javascript", it mentions the bundle sizes of its examples exactly zero times. Probably because the livewire bundle alone is like 40kb, comparable to react+react-dom's 45kb.
3 comments

Vue 3 is 16kb, or 27kb if you use everything. It feels like "heavy" refers primarily to cognitive load (a legit factor, of course).
A big difference though is that the Livewire lib is downloaded only once and includes Alpine for client side stuff.

With React you still need a ton of JS with components and other libs.

45kb (zipped!) for document.createElement() with a babel transpiler build process.
Excuse me, I forgot that react-dom also ships with an implementation of document.appendChild()