DEV Community

Cover image for LEARNING REACT
Uyai-Abasi
Uyai-Abasi

Posted on • Updated on

LEARNING REACT

Just learned the basic concept of react: Intro & Installation
React is an open-source JavaScript library for building interactive and dynamic user interfaces
It was developed and is maintained by Facebook.

To get started with react,

you'll need Node.js and Node Package Manager installed on your system why beacuse they provide the necessary runtime environment, package management, and tools to create, build, and manage React apps.
you can install from the official website https://t.co/BRgERMoXz0

After a successful installation,

To create a react app,

you open your terminal or command prompt to run the comand
npx create-react-app react-app
Here, react-app is the name you choose for your project.

 Creating a new React app.

To run a react app,

you need to be on your app directory. And to do that change directory, run the command
cd react-app

Changing the directory to 'react-app

Finally,to open a React app in a web browser, allowing any changes you make to your code reflect in real-time,
run the command
npm start
 Starting the React app for real-time testing
port http://localhost:3000/

You can access your React app in a web browser at http://localhost:3000/.

And that's it!! 🎉🥳🎊

Top comments (0)