Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create app with a specific react version

// if changing the create-react-app  script version does nothing then
npx create-react-app

//edit the package.json for react 
{	
  	"react": "^16.0.0",
	"react-dom": "^16.0.0",
}

// run in terminal in the project folder
npm i

// and it will work
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #app #specific #react #version
ADD COMMENT
Topic
Name
6+8 =