创建一个react APP

Create React App

首先,得下载安装好node.js,官网地址:https://nodejs.org/en/;终端检查:node  -v ;

react中文官网有这个(nodejs的版本大于等于6.0):

npm install -g create-react-app

create-react-app  (自定义包名)my-app

cd my-app

npm start

npm install -g create-react-app
create-react-app my-app等待...      下载完成 
找到包的位置,可以启动了okcd my-app
npm start


开始你的app之旅了

浏览器打开:http://localhost:3000/                     很nice!

猜你喜欢

转载自blog.csdn.net/qq_41408081/article/details/80364061