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

Warning: A Component: React.createClass is deprecated and will be removed in version 16 because of @storybook/addon-info #1114

Closed
chakravarthysm opened this issue May 24, 2017 · 3 comments

Comments

@chakravarthysm
Copy link

chakravarthysm commented May 24, 2017

https://github.com/christianalfoni/markdown-to-react-components repo is deprecated, it has been moved to new repo - https://github.com/cerebral/marksy ,

markdown-to-react-components still uses React.createClass in one of its files which is deprecated in React 15, I'm getting warning in console as -

warning.js:36 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.

As storybook/addon-info uses markdown-to-react-components ^0.2.1 version, please use https://www.npmjs.com/package/marksy which may fix it.

@ranneyd
Copy link
Contributor

ranneyd commented Jun 4, 2017

The module causing the error (https://github.com/christianalfoni/markdown-to-react-components) is marked as DEPRECATED in its readme. They recommend migrating to marksy (https://github.com/cerebral/marksy). Using a deprecated package is bad

@Jeff-Duke
Copy link

Is this still available or was it resolved in #1188 ?

@shilman
Copy link
Member

shilman commented Jun 28, 2017

@Jeff-Duke I think it's been fixed with the upgrade to marksy. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants