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
Post a Comment