请帮我。我有这样的代码,但是在更改状态时出现问题,消息错误是'Uncaught Error: Got unexpected null or undefined (...)'
var contentState, editorState, text;
text = this.state.text;
contentState = ContentState.createFromBlockArray(Draft.convertFromHTML(text));
editorState = EditorState.createWithContent(contentState);
this.setState({
editorState: editorState
});