base react app code example
Example 1: react create app
npx create-react-app my-app
cd my-app
npm start
Example 2: create react app
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
# or
yarn add typescript @types/node @types/react @types/react-dom @types/jest