@samitouri / QOS-React / commits / e25d899d23

Remove unnecessary findDOMNode calls (#8198)

Samer Buna committed Nov 8, 2016 at 13:15 UTC e25d899d23972f0e99a7ed1068991dfa273786e5
1 file changed +2 -2
docs/_js/live_editor.js
+2 -2
@@ -21,7 +21,7 @@ var CodeMirrorEditor = React.createClass({
21 componentDidMount: function() {
22 if (IS_MOBILE) return;
23
24 - this.editor = CodeMirror.fromTextArea(ReactDOM.findDOMNode(this.refs.editor), {
24 + this.editor = CodeMirror.fromTextArea(this.refs.editor, {
25 mode: 'jsx',
26 lineNumbers: this.props.lineNumbers,
27 lineWrapping: true,
@@ -200,7 +200,7 @@ var ReactPlayground = React.createClass({
200 },
201
202 executeCode: function() {
203 - var mountNode = ReactDOM.findDOMNode(this.refs.mount);
203 + var mountNode = this.refs.mount;
204
205 try {
206 ReactDOM.unmountComponentAtNode(mountNode);