how to upgrade react scripts code example
Example 1: update create react app
npm install react-scripts@latest
Example 2: npm install upgrade react version react-scripts
npm install --save react-scripts@latest
Example 3: how to update react app
//open terminal and run thsi code
cd newreact
//where newreact is the old react app you created
//open package.json in text editor and change the version to latest
//open the same terminal gain and run this
npm install