3 ms·
> It means downloading MBs of javascript just to render a simple page. React + react-dom minified gzipped is around 60kB. Yes, this is a lot; but no, this is n
by azangru 2y ago
> It means downloading MBs of javascript just to render a simple page.
React + react-dom minified gzipped is around 60kB. Yes, this is a lot; but no, this is not MBs of javascript. If your (simple) pages download MBs of javascript, that means you have added lots of other stuff on top of react.
While I completely agree that react is unnecessary for simple sites, react itself is not guilty of megabyte-size javascript bundles.
- grey-area 2y agoYou’re writing your entire website in react then downloading it to the client every time. This means the weight is react plus hundreds or thousands of dependencies (which this is ecosystem seems to actively encourage) plus all your app logic. MBs is not uncommon for larger websites.