From 18563080c886ef5b633ca51851e39d082ce9a910 Mon Sep 17 00:00:00 2001 From: Nee <944316342@qq.com> Date: Mon, 29 Feb 2016 17:28:47 +0800 Subject: [PATCH] Update 10.2-form-input-binding-sugar.zh-CN.md translation other English Party to Chinese. --- docs/10.2-form-input-binding-sugar.zh-CN.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/10.2-form-input-binding-sugar.zh-CN.md b/docs/10.2-form-input-binding-sugar.zh-CN.md index 28284151..9f88e77f 100644 --- a/docs/10.2-form-input-binding-sugar.zh-CN.md +++ b/docs/10.2-form-input-binding-sugar.zh-CN.md @@ -70,7 +70,7 @@ var WithLink = React.createClass({ ## 引擎盖下 -There are two sides to `ReactLink`: the place where you create the `ReactLink` instance and the place where you use it. To prove how simple `ReactLink` is, let's rewrite each side separately to be more explicit. +这里对 `ReactLink`有两方面:创建`ReactLink`的实例以及使用它的地方。为了证明`ReactLink`有多简单,让我们重写两方面一边更好的理解。 ### ReactLink Without LinkedStateMixin @@ -92,7 +92,7 @@ var WithoutMixin = React.createClass({ }); ``` -As you can see, `ReactLink` objects are very simple objects that just have a `value` and `requestChange` prop. And `LinkedStateMixin` is similarly simple: it just populates those fields with a value from `this.state` and a callback that calls `this.setState()`. +正如你所见,`ReactLink`对象是非常简单,只有`value`和`requestChange`属性.并且`LinkStateMixin`也很简单:它只是作用(populates)于`this.state`的元素值并且回调名为`this.setState()`的函数. ### ReactLink Without valueLink @@ -114,4 +114,4 @@ var WithoutLink = React.createClass({ }); ``` -The `valueLink` prop is also quite simple. It simply handles the `onChange` event and calls `this.props.valueLink.requestChange()` and also uses `this.props.valueLink.value` instead of `this.props.value`. That's it! +对于`valueLink`的属性同样也很简单,它只是简单的处理`onChange`事件,调用`this.props.valueLink.requestChange()`的时候也使用`this.props.valueLink.requestChange()`代替`this.props.value`.这就是双向绑定!