Skip to content

Commit 5ae4c61

Browse files
author
jwngr
committed
Fixed broken /commentsBox example
1 parent 1e824a4 commit 5ae4c61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/commentsBox/js/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ var CommentList = React.createClass({
3030
var CommentForm = React.createClass({
3131
handleSubmit: function(event) {
3232
event.preventDefault();
33-
var author = this.refs.author.getDOMNode().value.trim();
34-
var text = this.refs.text.getDOMNode().value.trim();
33+
var author = this.refs.author.value.trim();
34+
var text = this.refs.text.value.trim();
3535
this.props.onCommentSubmit({author: author, text: text});
36-
this.refs.author.getDOMNode().value = '';
37-
this.refs.text.getDOMNode().value = '';
36+
this.refs.author.value = '';
37+
this.refs.text.value = '';
3838
},
3939

4040
render: function() {
@@ -80,7 +80,7 @@ var CommentBox = React.createClass({
8080
}
8181
});
8282

83-
React.render(
83+
ReactDOM.render(
8484
<CommentBox />,
8585
document.getElementById('content')
8686
);

0 commit comments

Comments
 (0)