and it gives me this warning in chrome dev tools as soon as I click on the control:
react.development.js:220 Warning: Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the r component.
Hello,
I am using this code from https://jpuri.github.io/react-draft-wysiwyg/#/docs?_k=jjqinp:
and it gives me this warning in chrome dev tools as soon as I click on the control:
react.development.js:220 Warning: Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to
this.state
directly or define astate = {};
class property with the desired state in the r component.Here is code sample: https://codesandbox.io/s/boring-silence-jcd9o
How can I fix this?