- Node.js Installation:
- Download and install Node.js from nodejs.org.
- Verify installation using the following commands in the command prompt:
node -v
npm -v
- Create React App Installation:
-
Open the command prompt and run the following command to install Create React App globally:
npm install -g create-react-app
-
-
Create a New React App:
-
Navigate to the directory where you want to create your project using the command prompt.
-
Run the following command to create a new React app:
npx create-react-app my-react-app
-
-
Navigate to the Project Directory:
cd my-react-app
-
Start the Development Server:
npm start
-
Open in Browser:
- Open your web browser and go to http://localhost:3000/ to see your new React app.
-
Node.js Installation:
-
Install Node.js using your distribution's package manager. For example, on Ubuntu, you can use:
sudo apt update sudo apt install nodejs npm
-
-
Create React App Installation:
-
Use npm to install Create React App globally:
sudo npm install -g create-react-app
-
-
Create a New React App:
-
Navigate to the directory where you want to create your project in the terminal.
-
Run the following command to create a new React app:
npx create-react-app my-react-project
-
-
Navigate to the Project Directory:
cd my-react-project
-
Start the Development Server:
npm start
-
Open in Browser:
- Open your web browser and go to http://localhost:3000/ to see your new React app.
-
Install node.js https://nodejs.org/en/download/
-
How to check node js install or not ( open cmd and type node -v )
-
Install reactjs globally open cmd and type -
npm i -g create-react-app OR npm install -g create-react-app
-
Install reactjs project ( npx create-react-app appName ) Note no any space and capital letter in app name but you can use underscore or hyphen
npx create-react-app firstproject
- The project folder cannot be of Capital Letter
-
can be usedreact-js
as folder name.- Bring Back lost Packages -
npm i
- babel Javascript
- Auto Rename Tag
- Pretter