Creating a React.js project

Let's start with creating a small project in React.js

To create a React application node must be installed on the system.

create-react-app will be used to create a react app.

syntax:

npx create-react-app <app-name>

ex:

npx create-react-app test

this command will take sometime to finish execution. after its done executing, you will see a test folder which will contain all the project files.

to run the application navigate to test folder. using 

cd test

and execute the below command.

npm start

this will open your React app in new tab. if that does not happen visit localhost:3000 on your browser.

Comments

Popular posts from this blog

26th September - Day 15 of writing Diary

Day 2 of writing Diary

6th October Day 25 of writing Diary