Skip to content

Conversation

@AttackXiaoJinJin
Copy link
Contributor

  • 提交符合commit规范
  • 文档更改
  • 测试用例添加
  • npm run test通过
详细描述
  • 可以等 react 完全废弃 class component 后再合并
  • 使用 useRef 替代 useCallback 缓存函数引用地址
  • example/react16/webpack.config.js 添加 react 别名以在多个 react 版本中指定唯一版本

@yiludege
Copy link
Collaborator

useEffect, useRef 在react 16可能无法使用哦,这边的
"peerDependencies": {
"react": ">=16.0.0"
},

@yiludege yiludege added the invalid This doesn't seem right label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants