create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Option to create React project for specific version

Open asadullahehsan opened this issue 2 years ago • 0 comments

Is your proposal related to a problem?

Yes

Whenever we use create-react-app to make a project, it provides the latest version of react, react-dom, and testlibrary/react. The issue is that other npm packages are currently not supporting react v18, they have peer dependencies of v17 and/or v16. So we need a way to tell CRA the version of react required, so that the template may build the package.json, package-lock, index.js, node_modules and other packages according to that specific version. Currently we have to do such modifications manually.

Describe the solution you'd like

I want a CRA template that takes react version as parameter, and makes the project according to that specific version, so that we may be able to use the older versions of react too, i.e, React v17 and v16.

Describe alternatives you've considered

Currently this is the procedure that I am going through to make my project compatible with react [v16.] (https://dev.to/lowla/create-react-app-with-a-previous-version-of-react-4g03)

Additional context

(Write your answer here.)

asadullahehsan avatar Sep 02 '22 06:09 asadullahehsan