File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ var CommentList = React.createClass({
3030var 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) ;
You can’t perform that action at this time.
0 commit comments