Month End Sale: Get Extra 10% OFF on Job-oriented Training! Offer Ending in
D
H
M
S
Get Now

React CLI

Level : Beginner
Mentor: Shailendra Chauhan
Duration : 00:01:00

Creating a new application

To start a new React application, you can use the "create-react-app" command, which sets up a new project with the necessary files and configurations.

Example

npx create-react-app my-new-app

Selecting a template

React offers various templates and boilerplates to kickstart your project. You can choose a template based on your project requirements or use a custom template.

Example

npx create-react-app my-app --template [template-name]

Installing a dependency

To add external libraries or packages to your React project, you can use the "npm install" or "yarn add" command.

Example

npm install axios

Running the application

After setting up your React project, you can start a development server to run your application locally.

Example

npm start
Self-paced Membership
  • 22+ Video Courses
  • 800+ Hands-On Labs
  • 400+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Still have some questions? Let's discuss.
CONTACT US
Accept cookies & close this