• Introduction Now that you’ve installed Node.js and npm, it’s time to create your first React app! Our friendly duo, Geek and Gal, will guide you through the process, making it easy for beginners to understand.
Gal Normal

Alright, let's create a React app! We'll use Create React App , a popular tool for setting up a new React project.

Geek Curious

Sounds cool! How do I set it up?

  • Creating a React App
Gal Pleased

First, open your terminal or command prompt and run this command to install Create React App globally on your computer:

npm install -g create-react-app
Geek Happy

Got it! I've installed Create React App. What's next?

Gal Happy

Now you can create a new React app by running the following command, replacing "my-app" with the name you want for your app!

create-react-app my-app
Geek Surprised

Wow, it's creating a lot of files and folders!

Gal Happy

That's right! Create React App sets up the basic structure and dependencies for your React project! 😄

Geek Curious

How do I start the app?

Gal Pleased

After the installation is complete, navigate to your app's folder using the terminal or command prompt with this command:

cd my-app
Gal Happy

Then, start the development server by running this command:

npm start
Geek Happy

My app is running! I can see it in my browser! 🎉

Gal Happy

Awesome! Now you can start building your React app! Have fun coding! 🚀

  • Conclusion To create a React app, you’ll first install Create React App globally using npm. Then, run the create-react-app command to create a new React project with the desired name. Navigate to your app’s folder and start the development server with npm start. Your React app is now up and running! Happy coding! 😃