Skip to content

Commit

Permalink
feat: 移除use-immer
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Oct 31, 2024
1 parent 31f4f7d commit 2dcced4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GitHub 项目地址:[React-Ts-Template](https://github.com/huangmingfu/react-t
- **SCSS 预编译**:全面采用新版 SCSS,使用 `@use` 替代 `@import`,模块化更强。
- **ahooks**:提供丰富的 React Hooks 类似 VueUse,进一步简化逻辑代码。
- **zustand**:轻量级的状态管理库。通过对比 Redux、Dva、React-Toolkit、MobX,以及 `useContext` 结合 `useReducer` 的管理方式,最终选择了更简单的 Zustand。
- **Immer + use-immer**:简化不可变数据结构操作,尤其在多层次嵌套对象中处理更方便。
- **Immer**:简化不可变数据结构操作,尤其在多层次嵌套对象中处理更方便。
- **Lodash-es**:提供常用工具函数。若更偏向现代 ES 实现,也可以考虑 `es-toolkit`
- **Axios**:封装 HTTP 请求库,更方便与后端接口对接。
- **classnames**:动态类名管理工具,特别适合条件渲染样式。
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0",
"use-immer": "^0.10.0",
"zustand": "^5.0.0"
},
"devDependencies": {
Expand Down
14 changes: 0 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2dcced4

Please sign in to comment.