how to use react npm code example Example: creating react app using npx npx create-react-app my-app cd my-app yarn start