antd 调用message等方法等最佳实践 #48723
wanglei1900
started this conversation in
General
Replies: 2 comments
-
实在想用静态方法方式,可以用 holderRender |
Beta Was this translation helpful? Give feedback.
0 replies
-
只是个伪代码,示意的,传达意境而已. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Q1:各位pro,antd官网上关于这段代码,推荐在redux场景中使用,但为什么例子是在react组件中调用,是我理解的有偏差吗?
link:
https://ant-design.antgroup.com/components/app-cn#%E5%85%A8%E5%B1%80%E5%9C%BA%E6%99%AFredux-%E5%9C%BA%E6%99%AF
code:
Q2:调用message方法的最佳实践(函数组件,非组件场景)
在antd官网博客中,静态方法之痛文章中最后也提到上述App组件方法,目前函数组件和非组件场景都推荐用上述方法去调用message等方法吗?
Beta Was this translation helpful? Give feedback.
All reactions