From 109c9a91e27f4c71667e893a2c60ee6c466788c3 Mon Sep 17 00:00:00 2001 From: dortonway Date: Wed, 23 Dec 2015 03:01:02 +0300 Subject: [PATCH] Fix misunderstanding in tutorial --- docs/docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index cfeaa34a53fe7..890879c9d1450 100755 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -416,7 +416,7 @@ var CommentBox = React.createClass({ }); ``` -Here, `componentDidMount` is a method called automatically by React when 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. +Here, `componentDidMount` is a method called automatically by React after a component is rendered for the first time. 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,15,20-21,35} // tutorial14.js