File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ class NameForm extends React.Component {
37
37
}
38
38
```
39
39
40
- [ ** 在 CodePen 中尝试 ** ] ( https://codepen.io/gaearon/pen/WooRWa?editors=0010 )
40
+ [ ** 在 CodePen 上尝试 ** ] ( https://codepen.io/gaearon/pen/WooRWa?editors=0010 )
41
41
42
42
因为非受控组件将真实数据储存在 DOM 节点中,所以再使用非受控组件时,有时候反而更容易同时集成 React 和非 React 代码。如果你不介意代码美观性,并且希望快速编写代码,使用非受控组件往往可以减少你的代码量。否则,你应该使用受控组件。
43
43
44
- 如果你还是不清楚在某个特殊场景中应该使用哪种组件,那么你可以阅读 [ 这篇关于受控和非受控输入组件的文章] ( http://goshakkk.name/controlled-vs-uncontrolled-inputs-react/ ) 来了解更多 。
44
+ 如果你还是不清楚在某个特殊场景中应该使用哪种组件,那么 [ 这篇关于受控和非受控输入组件的文章] ( http://goshakkk.name/controlled-vs-uncontrolled-inputs-react/ ) 会很有帮助 。
45
45
46
46
### 默认值 {#default-values}
47
47
@@ -80,5 +80,5 @@ render() {
80
80
81
81
` embed:uncontrolled-components/input-type-file.js `
82
82
83
- [ ** 在 CodePen 中尝试 ** ] ( codepen://uncontrolled-components/input-type-file )
83
+ [ ** 在 CodePen 上尝试 ** ] ( codepen://uncontrolled-components/input-type-file )
84
84
You can’t perform that action at this time.
0 commit comments