Draft-js-plugins: React v16 Support

Created on 3 Oct 2017  路  3Comments  路  Source: draft-js-plugins/draft-js-plugins

Use-case/Problem

Looks like there are a couple of uses of deprecated features that have now been removed, ie. React.PropTypes -> prop-types module.

We migrated our app pretty quickly to get the speed boost it comes with and didn't have too many hiccups.

Most helpful comment

Haha, I just checked I'm on the latest version and looks like there is a [email protected] out! That works with React v16 it looks like.

Closing, apologies...

All 3 comments

React 16 is already supported. Do you see any issues after upgrading?

Hi @stevewillard apologies for the delay.

I'm using: "draft-js-plugins-editor": "^2.0.0-beta1",. Here's the problem:

screencapture-local-hugoai-3001-1507235571007

TypeError: Cannot read property 'object' of undefined
./node_modules/draft-js-plugins-editor/lib/Editor/index.js
node_modules/draft-js-plugins-editor/lib/Editor/index.js:177
  174 | }(_react.Component);
  175 | 
  176 | PluginEditor.propTypes = {
> 177 |   editorState: _react2.default.PropTypes.object.isRequired,
  178 |   onChange: _react2.default.PropTypes.func.isRequired,
  179 |   plugins: _react2.default.PropTypes.array,
  180 |   defaultKeyBindings: _react2.default.PropTypes.bool,

Haha, I just checked I'm on the latest version and looks like there is a [email protected] out! That works with React v16 it looks like.

Closing, apologies...

Was this page helpful?
0 / 5 - 0 ratings