I just started to learn react. When I typed
npx create-react-app myapp
,
I saw that my project was around 250mb. Is this normal?
Hello
Yes, you will need lots of space for React projects.
Even single page applications eat up a few hundred MB minimum.
1 Like
That is just all the dependencies. The final build will not be that size (at least code-wise).
I would suggest using Vite instead of CRA. It is much faster and smaller.
Thanks, Iām going to consider using Vite in the future
Yes, almost all of that is node_modules
which includes tooling/deps that will not be shipped to end users in the browser.
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.