Correctly highlight changed line in tutorial.
This excerpt adds the onSubmit handler to the form element, but the line was not highlighted as having been modified.
Sophia Westwood committed
Jan 21, 2015 at 17:15 UTC
a19966f2ea96d3d3dff4b32c0af66efcf96de60d
1 file changed
+1
-1
docs/docs/tutorial.md
+1
-1
@@ -482,7 +482,7 @@ var CommentForm = React.createClass({
482
483
Let's make the form interactive. When the user submits the form, we should clear it, submit a request to the server, and refresh the list of comments. To start, let's listen for the form's submit event and clear it.
484
485
-```javascript{3-14,18-20}
485
+```javascript{3-14,17-20}
486
// tutorial16.js
487
var CommentForm = React.createClass({
488
handleSubmit: function(e) {