react 项目创建 和 相关脚手架

一、DvaJS react[最早脚手架]

https://dvajs.com/guide/getting-started.html#%E5%AE%89%E8%A3%85-dva-cli

npm install dva-cli -g
dva new dva-quickstart

二、UmiJS react 脚手架

【链接】 https://umijs.org/zh-CN/docs/getting-started#%E8%84%9A%E6%89%8B%E6%9E%B6

**安装 **

npm i yarn tyarn -g
mkdir myapp && cd myapp
yarn create @umijs/umi-app
`

三、AntDesign react 脚手架

【链接】https://ant.design/docs/react/use-with-create-react-app-cn

**安装 **

$ yarn create react-app antd-demo

# or

$ npx create-react-app antd-demo

运行工具 yarn 和 npm

$ cd antd-demo
$ yarn start  / npm start

安装antd ui框架

yarn add antd
或
npm add antd

四、经典 Create React App : 不用创建脚手架 也能创建项目,厉害了!!!

【链接】https://www.html.cn/create-react-app/docs/getting-started/

创建项目

执行命令:npx create-react-app myapp
npm start [运行命令]
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容