umi入门之基础
作者:互联网
1.项目结构
umi项目的初始结构是这样的
.
├── package.json
├── .umirc.ts
├── .env
├── dist
├── mock
├── public
└── src
├── .umi
├── layouts/index.tsx
├── pages
├── index.less
└── index.tsx
└── app.ts
1.1 package.json
1.1.1 依赖
这些是所有的依赖
"dependencies": {
"@ant-design/pro-layout": "^6.5.0",
"react": "17.x",
"react-dom": "17.x",
"umi": "^3.5.20"
},
"devDependencies": {
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.5.20",
"lint-staged": "^10.0.7",
"
标签:index,入门,基础,react,3.5,umi,types,1.1 来源: https://blog.csdn.net/qq_27868061/article/details/121720215