Steps:
1. Open terminal and input
node -v
npm -v
npx -v
check the version of node.js, npm and npx . If you haven’t install those dependencies please install them first.
npx create-react-app practical-react
cd practical-react
code .
creating a react file, and open this file in Visual studio Code. Then Open a terminal in VScode, input npm start. you can view this React file in the browser.
2.Some settings
Installing prettier: can help you wrap your code, saving your time
setting FormatOnSave: true