React报错之react component changing uncontrolled input

正文从这开始~ 总览 当input的值被初始化为undefined,但后来又变更为一个不同的值时,会产生"A component is changing an uncontrolled input to be controlled"警告。为了解决该问题,将input的值初始化为空字符串。比如说,va

你可能感兴趣的:(React报错之react component changing uncontrolled input)