[docs] Small tweaks as reported in comments
* highlight `</form>` * use correct id in `getElementById` call
Paul O’Shannessy committed
Aug 28, 2013 at 14:42 UTC
e11c4ecbaf1eb0a46f92521c222171025fff3432
1 file changed
+2
-2
docs/docs/tutorial.md
+2
-2
@@ -314,7 +314,7 @@ Let's replace the hard-coded data with some dynamic data from the server. We wil
314
// tutorial11.js
315
React.renderComponent(
316
<CommentBox url="comments.json" />,
317
- document.getElementById('example')
317
+ document.getElementById('content')
318
);
319
```
320
@@ -438,7 +438,7 @@ All we have done here is move the AJAX call to a separate method and call it whe
438
439
Now it's time to build the form. Our `CommentForm` component should ask the user for their name and comment text and send a request to the server to save the comment.
440
441
-```javascript{5-8}
441
+```javascript{5-9}
442
// tutorial15.js
443
var CommentForm = React.createClass({
444
render: function() {