关于uncontrolled input的报错问题

@ckinmind 2017-03-28 07:02:14发表于 ckinmind/ReactCollect

报错如下:

Warning: t is changing an uncontrolled input of type text to be controlled. 
Input elements should not switch from uncontrolled to controlled (or vice versa). 
Decide between using a controlled or uncontrolled input element
for the lifetime of the component. 
More info: https://fb.me/react-controlled-components

fb参考资料如下:Controlled Components

出现这个错误的原因似乎是对input 直接填充value,但是没有写onChange函数去同步value值