Skip to content

Use with React 15.5 or React 16 #720

Description

@anshumanf

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions