From 89d4d352e1708c5976cb557c353b81d5a2cc0e2b Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 20 Feb 2014 11:40:14 -0800 Subject: [PATCH] Tweak tutorial wording to be more accurate --- docs/docs/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index c10c6c10bc..968a14806e 100644 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -6,7 +6,7 @@ prev: getting-started.html next: videos.html --- -We'll be building a simple, but realistic comments box that you can drop into a blog, similar to Disqus, LiveFyre or Facebook comments. +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. We'll provide: @@ -409,7 +409,7 @@ var CommentBox = React.createClass({ }); ``` -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. +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. ```javascript{3,16-17,31} // tutorial14.js