Browse Source

Merge pull request #2902 from swestwood/patch-2

Correctly highlight changed line in tutorial.
main
Ben Alpert 10 years ago
parent
commit
7c17b0e08e
  1. 2
      docs/tutorial.md

2
docs/tutorial.md

@ -482,7 +482,7 @@ var CommentForm = React.createClass({
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.
```javascript{3-14,18-20}
```javascript{3-14,17-20}
// tutorial16.js
var CommentForm = React.createClass({
handleSubmit: function(e) {

Loading…
Cancel
Save