Skip to content

Option to create React project for specific version #12701

@asadullahehsan

Description

@asadullahehsan

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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions