184k views
5 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 Loc
by
3.4k points

1 Answer

2 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 XDragonZ
by
3.0k points