diff --git a/_js/examples/markdown.js b/_js/examples/markdown.js index 696074cd..f0cab2b8 100644 --- a/_js/examples/markdown.js +++ b/_js/examples/markdown.js @@ -6,8 +6,8 @@ class MarkdownEditor extends React.Component { this.state = {value: 'Type some *markdown* here!'}; } - handleChange() { - this.setState({value: this.refs.textarea.value}); + handleChange(e) { + this.setState({value: e.target.value}); } getRawMarkup() { @@ -21,7 +21,6 @@ class MarkdownEditor extends React.Component {

Input