Update 10.2-form-input-binding-sugar.zh-CN.md
translation other English Party to Chinese.
Nee committed
Feb 29, 2016 at 17:28 UTC
132a2917477dd37e641c5bf5cbc035ce9ee6042c
1 file changed
+3
-3
docs/docs/10.2-form-input-binding-sugar.zh-CN.md
+3
-3
@@ -70,7 +70,7 @@ var WithLink = React.createClass({
70
71
## 引擎盖下
72
73
-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.
73
+这里对 `ReactLink`有两方面:创建`ReactLink`的实例以及使用它的地方。为了证明`ReactLink`有多简单,让我们重写两方面一边更好的理解。
74
75
### ReactLink Without LinkedStateMixin
76
@@ -92,7 +92,7 @@ var WithoutMixin = React.createClass({
92
});
93
```
94
95
-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()`.
95
+正如你所见,`ReactLink`对象是非常简单,只有`value`和`requestChange`属性.并且`LinkStateMixin`也很简单:它只是作用(populates)于`this.state`的元素值并且回调名为`this.setState()`的函数.
96
97
### ReactLink Without valueLink
98
@@ -114,4 +114,4 @@ var WithoutLink = React.createClass({
114
});
115
```
116
117
-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!
117
+对于`valueLink`的属性同样也很简单,它只是简单的处理`onChange`事件,调用`this.props.valueLink.requestChange()`的时候也使用`this.props.valueLink.requestChange()`代替`this.props.value`.这就是双向绑定!