3 ms·
That’s the size of the folder and its dependencies in node_modules, not the size of what gets sent over the network. You’re looking for Bundlephobia [1]. react
by jakelazaroff 5y ago
That’s the size of the folder and its dependencies in node_modules, not the size of what gets sent over the network. You’re looking for Bundlephobia [1].
react itself is also tiny; it only adds 2.5kb to your bundle size [2] (a 300b reduction from v17). react-dom is the much larger dependency, although as of right now Bundlephobia errors out when trying to analyze the newest version [2].
EDIT: they’ve got react-dom@18.0.0 working now and it’s indeed slightly bigger than the previous version: 41.7kb vs 39.4kb.
[1] https://bundlephobia.com https://bundlephobia.com
[2] https://bundlephobia.com/package/react@18.0.0 https://bundlephobia.com/package/react@18.0.0
[3] https://bundlephobia.com/package/react-dom@18.0.0 https://bundlephobia.com/package/react-dom@18.0.0