Permalink
Browse files

post-tutorial tweak - drop redundant call to `React.findDOMNode` when…

… accessing `this.refs.textInput` (ref: meteor/simple-todos-react@1b87eff#commitcomment-14396600)
  • Loading branch information...
itamaro committed Nov 28, 2015
1 parent 6c87404 commit 0bfd9ec007d3943f415bd39d84b565a874aa598a
Showing with 2 additions and 2 deletions.
  1. +2 −2 App.jsx
@@ -43,12 +43,12 @@ App = React.createClass({
event.preventDefault();

// Find the text field via the React ref
var text = React.findDOMNode(this.refs.textInput).value.trim();
var text = this.refs.textInput.value.trim();

Meteor.call("addTask", text);

// Clear form
React.findDOMNode(this.refs.textInput).value = "";
this.refs.textInput.value = "";
},

toggleHideCompleted() {

0 comments on commit 0bfd9ec

Please sign in to comment.