npm init
package name: (webpack) mywebpack
version: (1.0.0)
description:
entry point: (index.js) app/index.js
test command:
git repository:
keywords: webpack react
author: mqf
license: (ISC)
About to write to E:\mqfProject\webpack\package.json:
{
“name”: “mywebpack”,
“version”: “1.0.0”,
“description”: “”,
“main”: “app/index.js”,
“scripts”: {
“test”: “echo \”Error: no test specified\” && exit 1”
},
“keywords”: [
“webpack”,
“react”
],
“author”: “mqf”,
“license”: “ISC”
}
Is this ok? (yes)
创建完成~!
添加reactjs
npm install react --save