jhe*_*dus 12 flowtype
有没有办法使流类型的React Context类型安全?
例如 :
Button.contextTypes = { color: React.PropTypes.string };
jhe*_*dus 11
不幸的是,它本身是不可能的,因为Context在编译时不知道(所以我被告知).
Context
归档时间:
8 年,11 月 前
查看次数:
3198 次
最近记录:
7 年,7 月 前