Why we need the –scripts-version command line option for create-react-app? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Why we need the –scripts-version command line option for create-react-app? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I am new to React and learning how to properly create new project. Then I came across --scripts-version when we create new project with such command:

create-react-app new-project --scripts-version

Why do we need to use --scripts-version?

Answer

The tool create-react-app is basically a wrapper around a number of tools and configuration options stored in an npm package called react-scripts.

When you use the create-react-app command to create your React app, it uses react-scripts to set up your project.

The command line option --scripts-version is an advanced feature to change which version of react-scripts is used.

If you are not happy with the way create-react-app sets up your project, you can fork the react-scripts repository, change it and then use your version to create your React apps.

We are here to answer your question about Why we need the –scripts-version command line option for create-react-app? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji