create-react-app update project code example
Example 1: update create react app
npm install react-scripts@latest
Example 2: update react app
//NPM
npm install --save react@latest
//Yarn
yarn upgrade react@latest
npm install react-scripts@latest
//NPM
npm install --save react@latest
//Yarn
yarn upgrade react@latest