React Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

First, we need to create our React application using create-react-app. Once that is done, you can proceed to create your first React component.

Before you install create-react-app, remember that you need to download and install Node from www.nodejs.org. You can install it for Mac, Linux, and Windows.

Install create-react-app globally by typing this command in your Terminal:

  npm install -g create-react-app

Or you can use a shortcut:

  npm i -g create-react-app