Griddle icon indicating copy to clipboard operation
Griddle copied to clipboard

Use with React 15.5 or React 16

Open anshumanf opened this issue 7 years ago • 3 comments

Griddle version

0.8.1

Expected Behavior

No warnings or errors with React versions above 15.5

Actual Behavior

With React 15.5, the following warnings:

  • Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class
  • Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs

Steps to reproduce

Any usage of this package will reproduce the above behavior. Example: https://jsfiddle.net/anshumanf/v4qu94v6/

I'm currently on 0.8.1 and want to upgrade to React 16 which removes React.createClass(). I considered the following routes to make this work:

  • migrate to a 1.x release: This is very hard because there is no migration guide yet (#579)
  • help create a new 0.x release that uses create-react-class from npm: Most 0.x releases including the latest (0.8.1) are not tagged here on Github (#673). There does not seem to be a 0.x branch either so I don't know how I can contribute to a new 0.x release.

I want to keep using Griddle but this is a problem. Any ideas?

anshumanf avatar Aug 15 '17 19:08 anshumanf

I have this problem as well. Very annoying to see it splashed all over my console. Freaked me out at first lol

AnthoniG avatar Aug 17 '17 09:08 AnthoniG

I believe the branch is 'v0'. https://github.com/GriddleGriddle/Griddle/commits/v0

mreishus avatar Aug 28 '17 13:08 mreishus

Will be fixed in #753

MichaelDeBoey avatar Oct 24 '17 10:10 MichaelDeBoey