-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Fix prop-types and create-react-class warning #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createClass 最好改下
src/AjaxUploader.jsx
Outdated
import classNames from 'classnames'; | ||
import defaultRequest from './request'; | ||
import getUid from './uid'; | ||
|
||
const AjaxUploader = React.createClass({ | ||
const AjaxUploader = createReactClass({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要用 createReactClass 了吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里改成 class 的?
src/IframeUploader.jsx
Outdated
@@ -14,7 +16,8 @@ const IFRAME_STYLE = { | |||
}; | |||
|
|||
// diferent from AjaxUpload, can only upload on at one time, serial seriously | |||
const IframeUploader = React.createClass({ | |||
const IframeUploader = createReactClass({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有这里
package.json
Outdated
@@ -52,6 +52,8 @@ | |||
"dependencies": { | |||
"babel-runtime": "6.x", | |||
"classnames": "^2.2.5", | |||
"warning": "2.x" | |||
"warning": "2.x", | |||
"create-react-class": "^15.5.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个依赖不需要吧
2.3.5 |
ant-design/ant-design#5678