update react with create react app 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