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

💡:我有个想法,想用函数式组件重构一遍,是否可行? #483

Closed
LonelyFellas opened this issue Mar 28, 2024 · 4 comments

Comments

@LonelyFellas
Copy link

No description provided.

@LonelyFellas LonelyFellas changed the title 💡:我有个想法,想用hook方式重写一遍,是否可行? 💡:我有个想法,想用函数式组件重构一遍,是否可行? Mar 28, 2024
@jaywcjlove
Copy link
Owner

jaywcjlove commented Mar 28, 2024

@LonelyFellas 这个库维护超过 9 年,光 npm 下载 一年超过 2000万,会合并来自社区的小修小改,不会大改动,我个人 2021 就失去了大改造的动力,如果你有兴趣可以起个仓库实现自己的想法,这个对自己技术提升非常有帮助

@jaywcjlove
Copy link
Owner

@LonelyFellas 有想法是非常棒的,当初启动这个库的时候,有个 keymaster 的库并没有在 npm 上提交,然后自己有一些想法,显然人家已经不维护了,我就自己起了一个仓库,做起来了

@jaywcjlove
Copy link
Owner

@LonelyFellas
Copy link
Author

LonelyFellas commented Mar 28, 2024

@jaywcjlove 可以保留这个原来class组件,从src/index.js多导出来一个新的函数式组件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants