392,846 views
26 votes
26 votes
Which are the correct commands to create and run an ReactJS project?

npm create-react-app my-app && cd my-app && npx start
npm create-react-app my-app && cd my-app && npm start
npx create-react-app my-app && cd my-app && npx start
npx create-react-app my-app && cd my-app && npm start
npx create-react my-app && cd my-app && npm start

User Eythort
by
3.3k points

1 Answer

22 votes
22 votes

Answer:

Step 1: Initialize NPM (Node Package Manager) mkdir new-react-app cd new-react-app npm init --y. ...

Step 2: Install React, Webpack, and Babel. ...

Step 3: Create the files. ...

Step 4: Create NPM run scripts.

User Riyas TK
by
2.6k points