humo Wells
humo Wells

Reputation: 13

Is it best practice to escape create react app and create our own template to get React project ready for production?

I am new to React and recently joined a team and my first assignment was to set up a react project without using create-react-app because as team lead told me custom template makes easier to put react into production. Then, the question is how about create-react-app helping us with all of the setup for us and if we want to customize the CRA we can use npm run eject. So, why should we create our own template?

Upvotes: 1

Views: 234

Answers (1)

Dennis Vash
Dennis Vash

Reputation: 53964

On the contrary, it's pretty hard to setup a React application without a template.

You can check Creating a Toolchain from Scratch at React docs which refers to this guide.

Your own template should configure package manager, bundler and compiler, it's not so trivial. Best suggestion would be extending CRA by cloning the repo or running yarn eject and continue from there.

Upvotes: 1

Related Questions