-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use es6 class style in demo code #4878
Comments
Agree, could you PR to update It will be better to write your issue/comment in English, so more people can understand you. And this means that more people can help you or benefit from your issue/comment. |
the same as ant-design/ant-design-mobile#824 |
Let us do it. |
Anyone could propose PR for |
Enable this rule: d7694d4 And run
|
All done!! 🎆 🎉 Thanks everybody!!! |
用雨燕构建时使用了 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
2.7.1 版 Ant Design 文档:https://ant.design/docs/react/introduce-cn
文档的示例代码,针对React有状态组件分别使用了两种不同的定义组件的方式。
在大多数情况下 ,比如Modal的示例代码,采用了
上面那样的写法。
而在steps,slider 等组件的示例代码中,又出现了
这样的写法
我不知道出现这两种定义组件的方式的用意何在?
我当然知道这样一个庞大的项目,文档绝对不可能是一个人写成的,但还是希望能够统一一下定义组件的方式。看React的官方文档,目前官方应该是推荐使用第二种定义组件的方式的。
The text was updated successfully, but these errors were encountered: