约束组件相对于非约束组件的优势只有一个完整的生命周期吗

#1

看一个人关于约束组件非约束组件的文章,http://blog.csdn.net/lihongxun945/article/details/46730835,不是很理解为什么要在input里面设置value={this.state.email},然后设置onchange事件来改变这个email,明明你输入之后input里面的东西值就变了,还要用个方法来改变,感觉变复杂了呢,文章所说的**它能更好的控制组件的生命流程**在实际应用中有什么用,新手,不是很理解

#2

同步状态

#3


With a controlled component, every state mutation will have an associated handler function. This makes it straightforward to modify or validate user input. For example, if we wanted to enforce that names are written with all uppercase letters, we could write handleChange as:

 handleChange(event) {
   this.setState({value: event.target.value.toUpperCase()});
 }
#5

thank you very much!