1,input的值不受state改变。通过ref获取。
2,ref,defaultValue,defaultChecked
3,场景:必须操作DOM,setState实现不了。eg:<input type=‘file‘>、富文本编辑
4,与受控组件比较,受控组件更符合react设计思想。
react:非受控组件。
原文:https://www.cnblogs.com/maoli-demo/p/14086131.html