素材 https://haltu.github.io/muuri/ http://golden-layout.com/
UI框架需求点
- 可拖拽改变容器大小
- 可拖拽改变容器位置
- 可最大化最小化
https://hexagonsf.visualstudio.com/_git/platform
-
create-react-app脚手架本身webpack配置支持jsx,支持scss,需要自己安装node-sass, sass-loader
npm i node-sass sass-loader -D
-
Using React Hook, if component name start with lower-case letter, error below will occur
React Hook "useState" is called in function "withoutMemo" which is neither a React function component or a custom React Hook function.eslint(react-hooks/rules-of-hooks)
-
echarts-for-react
npm i echarts echarts-for-react
-
npm怎么升级所有的包?
-
使用antd DatePicker需要install moment.js
npm i moment
-
import redux-persist
npm i redux-persist
- 引入了redux-persist,每次刷新页面redux-persist都会自动加载之前的state并且初始化state,所以reducer参数state不需要设置默认值
-
引入批量删除功能,但是由于添加功能id可能重复,导致批量删除功能不正常,下一步解决这个bug,并用redux-toolkit重写redux相关的逻辑
-
store相关的代码最好不要放到index.js里边,放到每个demo根组件中,这样如果要切换demo直接在index.js里边修改demo根组件即可,不用动跟redux相关的任何配置