react decorator 使用
Mr-haili opened this issue · 0 comments
Mr-haili commented
lets rock
https://levelup.gitconnected.com/ultimate-react-component-patterns-with-typescript-2-8-82990c516935
整理归纳一下 ts 相关的 hoc 和 decorators 的类型的写法
务必做到类型安全,各种用法 patterns 归纳完整
相关记录
https://larrylu.blog/react-decorator-hoc-2536db2737cb
介绍了和 hoc 先关的一些库与使用
https://github.com/mbasso/react-decoration
一个 decoration 的装饰库
https://github.com/neighborhood999/recompose/blob/zh-TW/docs/API.md
recompose 库
一篇有趣的文章
https://levelup.gitconnected.com/ultimate-react-component-patterns-with-typescript-2-8-82990c516935