3 ms·
React weight 6.4 kB? In which universe? React-dom alone is 42kB gzip. https://bundlephobia.com/package/react-dom https://bundlephobia.com/package/react-dom
by pier25 3y ago
React weight 6.4 kB? In which universe?
React-dom alone is 42kB gzip.
https://bundlephobia.com/package/react-dom https://bundlephobia.com/package/react-dom
- andai 3y agoPreact is 3kb and works as a drop in replacement for React (most of the time). It's also way faster.
- Octoth0rpe 3y agoSimilar to how the size of react without accounting for react-dom is deceptive, one is also unlikely to use preact without @preact/hooks and/or @preact/signals which increases the size somewhat. Still much, MUCH smaller than react though.
- kreetx 3y agoIs there a reason to use the original react, or will most libraries also work with preact, which is both faster and smaller?