创建react应用(react学习)

1.确认Node.js和npm安装成功,执行命令,安装create-react-app

npm install --global create-react-app

2.执行命令,创建一个名为first_react的目录

create-react-app first_react

3.进入文件  输入命令启动开发者模式服务器,打开网页指向本机地址http://local-host:3000/

cd first_react

npm start

猜你喜欢

转载自blog.csdn.net/weixin_39950595/article/details/92811317