react and yarn code example Example: npm create react app npx create-react-app app-name cd app-name npm start