Basic React App – npm Terminal Commands

While building a React JS App the developer may have to use a lot of npm commands in the terminal. Let’s check out some basic commands used for React JS.

npm Command for React CRA

npx create-react-app my-app

CRA refers to the Create React App, that generates the react template and basic files.

my-app is the name of the React App. You can customize that with your app name.

npm Command for running React App

npm start

npm Command for installing React App (existing project)

npm install

We can copy the files of our existing React project and try the above command to install the npm packages.

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *