This guide provides instructions on how to install React.js on your local development environment.
Credits to Kishan Sheth for providing this amazing tutorials
Youtube: https://www.youtube.com/@KishanSheth21/
Github: https://github.com/koolkishan
Make sure you have the following software installed on your system:
- Node.js (version 12 or higher)
- npm (Node Package Manager)
Follow the steps below to install React.js:
-
Open your terminal or command prompt.
-
Create a new directory for your React project:
mkdir my-react-app
cd my-react-app
- Initialize a new Node.js project using npm:
npm init -y
- Install React and ReactDOM packages:
npm install react react-dom
- Optionally, you can install Create React App globally for quickly setting up a new React application:
npm install -g create-react-app
To start a new React application using Create React App, execute the following command:
npx create-react-app my-app
cd my-app
npm start
This will start the development server and open your new React application in a new browser window.
This project is licensed under the MIT License - see the LICENSE file for details.
- This project was bootstrapped with Create React App.