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

Deprecation warnings & discontinued addon support for React 16 #759

Closed
Donaldini opened this issue Apr 11, 2017 · 5 comments
Closed

Deprecation warnings & discontinued addon support for React 16 #759

Donaldini opened this issue Apr 11, 2017 · 5 comments

Comments

@Donaldini
Copy link

Donaldini commented Apr 11, 2017

With the release of React 15.5 as a preparation for React 16 a bunch of deprecation warnings and changes were released.

Some of these are related to Storybook:

Deprecations

  • 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.

Discontinuing support for React Addons

  • react-addons-create-fragment

React Test Utils

  • react-addons-test-utils

[ Source: React Blog: React v15.5 ]

@ndelangen
Copy link
Member

I think this has been dealt with: https://github.com/storybooks/mono/issues/35

@Hypnosphi
Copy link
Member

Hypnosphi commented May 2, 2017

The problem is that some of those warnings come from dependencies. One of them, for example, is https://github.com/xyc/react-inspector, which have no activity since the beginning of this year. Maybe some alternative should be considered instead.

Another example is from this organisation: https://github.com/storybooks/react-split-pane/issues/6

@ndelangen
Copy link
Member

React-split-pane has been dealt with, by switching away from the fork to the original.

React-inspector I'll have to look into, do you have an idea what it does and what replacement would be best?

@Hypnosphi
Copy link
Member

Hypnosphi commented May 10, 2017

It's used in ActionLogger for displaying actions data in devtools-like way: https://github.com/xyc/react-inspector#objectinspector-

You may consider using redux LogMonitor instead

@ndelangen
Copy link
Member

react-inspector is now forked, updated, published and used in #1008

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

3 participants