Starting from scratch

Create a React app by using the Create React App package.

We should install the package by running the following comands:

npx create-react-app my-react-project-1

We should see something like:

Success! Created my-react-project-1 at /Users/damian/OneDrive/Documents/Programming/Workspaces/react-the-complete-guide-course/01-my-react-files/01-project/my-react-project-1
Inside that directory, you can run several commands:

  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-react-project-1
  npm start

Happy hacking!

Using an existing project

Alternatively, we can copy a React project to our development environment and run:

npm install

This way, we will have all the packages needed to start working on the project