react的安装和使用

1.react是依靠nodejs的,所以必须要先下载node才可以使用其他的

2.安装node之后,磁盘可选择,在选择之后的的那个磁盘中出现命令行,运行【node -v】【npm -v】

3.npm成功之后,安装creat-react-app工具【npm install --global create-react-app】,此工具是react的应用工具

4.【create-react-app first_react_app】创建我的第一个程序,叫做first_react_app,然后去启动这个程序

5.成功安装first_react_app【cd first_react_app】,然后运行【npm start】

6.此时会出现,以下的本地环境

 Local:            http://localhost:3000/
  On Your Network:  http://10.10.0.162:3000/

发布了18 篇原创文章 · 获赞 2 · 访问量 4545

猜你喜欢

转载自blog.csdn.net/weixin_43172087/article/details/103957661