@samitouri / QOS-React-2 / commits / 89d4d352e1

Tweak tutorial wording to be more accurate

Ben Alpert committed Feb 20, 2014 at 11:40 UTC 89d4d352e1708c5976cb557c353b81d5a2cc0e2b
1 file changed +2 -2
docs/docs/tutorial.md
+2 -2
@@ -6,7 +6,7 @@ prev: getting-started.html
6 next: videos.html
7 ---
8
9 -We'll be building a simple, but realistic comments box that you can drop into a blog, similar to Disqus, LiveFyre or Facebook comments.
9 +We'll be building a simple, but realistic comments box that you can drop into a blog, a basic version of the realtime comments offered by Disqus, LiveFyre or Facebook comments.
10
11 We'll provide:
12
@@ -409,7 +409,7 @@ var CommentBox = React.createClass({
409 });
410 ```
411
412 -Here, `componentWillMount` is a method called automatically by React before a component is rendered. The key to dynamic updates is the call to `this.setState()`. We replace the old array of comments with the new one from the server and the UI automatically updates itself. Because of this reactivity, it is trivial to add live updates. We will use simple polling here but you could easily use WebSockets or other technologies.
412 +Here, `componentWillMount` is a method called automatically by React before a component is rendered. The key to dynamic updates is the call to `this.setState()`. We replace the old array of comments with the new one from the server and the UI automatically updates itself. Because of this reactivity, it is only a minor change to add live updates. We will use simple polling here but you could easily use WebSockets or other technologies.
413
414 ```javascript{3,16-17,31}
415 // tutorial14.js