npx create-react-app documentation code example
Example 1: how to create react app using yarn
yarn create react-app my-app
Example 2: create-react-app
npx create-react-app my-app
cd my-app
npm start
yarn create react-app my-app
npx create-react-app my-app
cd my-app
npm start