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.
-
If you haven't already done so, install
create-react-app
like this:$ npm install -g create-react-app
-
Create a project
my-app
, and start the development server:$ create-react-app hello $ cd hello $ npm start
-
This should open a browser on your project.