For real projects, create an app with a build tool. The recommended starting point is Vite:
Install Node.js (see the Node.js tutorial).
npm create vite@latest my-app -- --template react
cd my-app, then npm install
npm run dev and open the URL it prints.
Your code lives in src/; main.jsx mounts the root App component. Frameworks like Next.js add routing and server rendering on top of React.
The examples here load React from a CDN with Babel, so they run directly in the browser editor.
💡 Key Takeaways: React Get Started
Mastering React Get Started helps you write clean and reliable React code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.