Basic React Setup

Required: NodeJS

 

npx create-react-app my-new-app , cd my-new-app | npm start

npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd my-new-app
  npm start
Note
npx on the first line is not a typo — it’s a package runner tool that comes with npm 5.2+.

Was this article helpful?

Related Articles

Leave A Comment?