Skip to content

Commit

Permalink
Merge pull request #67 from tantaman/patch-1
Browse files Browse the repository at this point in the history
missing `this` in state initialization
  • Loading branch information
ngs authored Aug 17, 2020
2 parents 231f18d + 312bca3 commit 631f186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const plugins = [createMarkdownShortcutsPlugin()];
export default class DemoEditor extends Component {
constructor(props) {
super(props);
state = {
this.state = {
editorState: EditorState.createEmpty(),
};
}
Expand Down

0 comments on commit 631f186

Please sign in to comment.