Skip to content
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

"version": "1.2.2": 存在2个 Warning #54

Closed
Jafeney opened this issue May 8, 2017 · 4 comments
Closed

"version": "1.2.2": 存在2个 Warning #54

Jafeney opened this issue May 8, 2017 · 4 comments

Comments

@Jafeney
Copy link

Jafeney commented May 8, 2017

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

Warning: A Component: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

建议更新依赖包

@hustcc
Copy link
Owner

hustcc commented May 8, 2017

1.2.2 版本就是修改了以上 deprecated 问题的,是否本地没有重新安装依赖。

live demo 也是没有 warning 的。

@jeffvandyke
Copy link

I'm still getting the PropTypes warning, even with the latest version. It looks like all that needs to be done is to replace "React.PropTypes" with "PropTypes".

hustcc added a commit that referenced this issue May 10, 2017
@hustcc
Copy link
Owner

hustcc commented May 10, 2017

Sorry, my omission. I have push a new commit, after test, v1.2.3 will solve the warning.

@hustcc
Copy link
Owner

hustcc commented May 10, 2017

Done, v1.2.3

@jeffvandyke @Jafeney

@hustcc hustcc closed this as completed May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants