Permalink
Browse files

mount editorstate

  • Loading branch information...
juliankrispel committed Jun 16, 2017
1 parent e10afa0 commit f0eb7a975077a607315de9e2fc5ab9bafd337b91
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/App.js
View
@@ -1,10 +1,19 @@
import React, { Component } from 'react';
import { Editor } from 'draft-js';
import { Editor, EditorState } from 'draft-js';
class App extends Component {
constructor() {
super();
this.state = {
editorState: EditorState.createEmpty(),
};
}
render() {
return (
<Editor />
<Editor
editorState={this.state.editorState}
/>
);
}
}

0 comments on commit f0eb7a9

Please sign in to comment.