setting react js code example Example: react js installation npx create-react-app my-app cd my-app npm start