关于函数组件的WithTranslation
来源:8-7 【i18n】完成网站语言切换

慕粉1093306
2022-04-06
老师请问函数组件的泛型定义为什么没有使用WithTranslation呢 而类组件使用了,不是很懂
写回答
1回答
-
阿莱克斯刘
2022-04-07
函数式组件可以用钩子(hook,UseTranslation),而类组件只能用HOC高阶组件的方式来处理(WithTranslation)。不知道我有没有准确回答到你的问题。
012022-04-07
相似问题