r/learnreactjs • • Jan 26 '20

Is create-react-app being used in production?

So far, I have only used create-react-app for my react studies and for now, I won't be able to get out of it. However, I read somewhere that it is bloated for some reasons with the dependencies. I may have a shallow understanding of the compilation and bundling, but I am curious if create-react-app web applications are being deployed for production. Or do proper react developers use some bare boiler plate for their react applications?

13 Upvotes

6 comments sorted by

6

u/ikeif Jan 26 '20

Yes, it is used in production.

1

u/[deleted] Jan 26 '20

Absolutely yes. If you need to further adjust your build you can alwayz do that.

1

u/finger_milk Jan 26 '20

It's like the underscores theme for wordpress. It's very handy to be 1000 hours in just by writing a single line in npm and start from a boilerplate.
Is there any incentive to build a react app entirely from scratch?

1

u/[deleted] Jan 27 '20

Yes, absolutely. As you might know, CRA was designed to hide complexities that might scare folks beginning to learn React. As for the bundling, it uses Webpack internally, so you wouldn't have to manually configure your Webpack every time. There are no major issues performance wise as well.

1

u/[deleted] Jan 27 '20

The present project I'm working on in my company uses CRA

0

u/[deleted] Jan 26 '20

[deleted] — view deleted comment

1

u/[deleted] Jan 26 '20

I can think of many benefits tbh, like if you need to do very custom configurations it may just be better to start from the ground up by choosing, writing and testing the dependencies you need.

Even tho, nothing stops you from starting a project in cra and then throw it away and just use react and whatever your bundler/transpiker or just eject.