[RFC] New Component App #38901
Replies: 6 comments 11 replies
-
是不是开一个字段可配。 |
Beta Was this translation helpful? Give feedback.
-
可以换个名字么?App 一般用于项目入口组件,可能引起混淆 |
Beta Was this translation helpful? Give feedback.
-
Interesting 🤔 |
Beta Was this translation helpful? Give feedback.
-
Why did Antd V5 decide to remove the base styles of global app and just focused on component styles? Example: https://github.com/ant-design/ant-design/blob/4.x-stable/components/style/core/global.less |
Beta Was this translation helpful? Give feedback.
-
UseApp is a poor method. If it is a public method, it cannot be used if you need to call static methods such as message.xxx |
Beta Was this translation helpful? Give feedback.
-
📋 RFC
Summary
New App Component which provide global style & static function replacement.
Basic example
Motivation
Static function in React 18 concurrent mode will not well support. In v5, we recommend to use hooks for the static replacement. But it will make user manual work on define this.
Detailed
Support:
Drawbacks
Diff with static function, need a component wrapper.
Adoption strategy
Apply new component in minor version.
Beta Was this translation helpful? Give feedback.
All reactions