umi3 study
Zhangwuji
Posted on May 3, 2024
- use pnpm to create one umi simple template; if you want to use ant-mobile; just npm i ant-mobile; just save;
- .some umi3 don't auto load umi-plugins in dependency on your peoject。 you can pnpm add -D @umijs/plugins then you must manually start them; for example
plugins: ['@umijs/plugins/dist/antd'],
antd: {}
but if you use ant; don't have comfortable .d.ts for it;you should install .d.ts of ant-design;
4.dont forget if you add code plugins: ['@umijs/plugins/dist/antd']
but these don't indicate plugin start; you must write these configuration item
eg. `model: {
}; they will load and start
@umijs/plugins/dist/antd`
- useEffect is from react
import { useState, useCallback, useEffect } from 'react'
;
💖 💪 🙅 🚩
Zhangwuji
Posted on May 3, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.