Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Fix warnings from React v15.5.* #1157

@flarnie

Description

@flarnie

The latest version of React moved/deprecated some things and throws warnings. In order to not permanently warn when using Draft v0.10.1 with React v15.5+ we should fix these warnings asap. I'm going to do this right now.

Warnings showing up on master:

 PASS  src/component/contents/__tests__/DraftEditorBlock.react-test.js
  ● Console
    console.error node_modules/fbjs/lib/warning.js:36
      Warning: DecoratorSpan: 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.
...
 PASS  src/component/base/__tests__/DraftEditor.react-test.js
  ● Console
    console.error node_modules/fbjs/lib/warning.js:36
      Warning: Shallow renderer has been moved to react-test-renderer/shallow. Update references to remove this warning.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions