目标
也就将这个页面独立出来。(本人没有系统性学习过React,经验都在做后端的,对应前端,能跑起来,能用起来就可以了)

过程
通过此文档,搭建好基本环境。
在 create-react-app 中使用 - Ant Design X
这里有一点要注意
bash
yarn create react-app antdx-demo --template typescript
跑这个后TypeScript版本很低,需要提升到5.0.0以上
bash
yarn add [email protected]
这样就不会报错了。
随后把样版间抠出来,放到App.tsx
https://github.com/ant-design/x/blob/main/docs/playground/independent.tsx
再把各个组建加载下:
bash
yarn add antd
yarn add antd-style
yarn add react
就可以了:
