Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 修改wujie-react组件为函数式组件 #794

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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