jasonzhaozxc.com - Z.X.C

Example domain paragraphs

Prerequisite: npm installed

Firstly we need to create a new folder and initialize the project by npm .

1 2 3 mkdir react-app cd react-app npm init After configurating several properties in the command line, package.json will be generated in current folder. This file contains the dependencies and some configurations of this project, just as the pom.xml in a maven project. Instead of using npm init , you can also create the file package.json and edit it manually.