peyton

Results 7 comments of peyton

try to catch componentDidCatch(error, info) { // You can also log the error to an error reporting service // logErrorToMyService(error, info); console.log('componentDidCatch:', this.getContent()); this.setState({ editorState: EditorState.createEmpty(draftDecorator) }); }`

这个问题解决了吗?

![image](https://user-images.githubusercontent.com/17973574/64750656-44cc9600-d54c-11e9-9014-461f1588f9a5.png) ![image](https://user-images.githubusercontent.com/17973574/64750671-4d24d100-d54c-11e9-9952-9f6f3920eba2.png)