创建React项目
创建一个react项目
webpack的方式
借助一个脚手架:create-react-app
- 全局安装脚手架命令
- yarn global add create-react-app
- npm install create-react-app -g
- 查看脚手架版本:create-react-app --version
- 创建项目: create-react-app 项目名
- 进入项目: cd 项目名
- 运行命令: npm run start
大约 2 分钟
借助一个脚手架:create-react-app
大哥,看我干啥,vue官方都不维护vue2了,作为一个前端开发者,如果你还不会vue2那你就out了,其实是我懒,但是我不会告诉你的...
如果你真的要学vue2的话: