Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 596 Bytes

02-getting-started-with-create-react-app.md

File metadata and controls

19 lines (10 loc) · 596 Bytes

Getting Started with create-react-app

To get started with React, we will use create-react-app. It runs on the 'node' platform, whose installer gives you both the node and npm commands.

If the commands below don't succeed, go through the prerequisites first.

  1. If you haven't already done so, install create-react-app like this:

     $ npm install -g create-react-app
    
  2. Create a project my-app, and start the development server:

     $ create-react-app hello
     $ cd hello
     $ npm start
    
  3. This should open a browser on your project.