# Warning: value prop on input should not be null.

// console报错信息如下
Warning: value prop on input should not be null. Consider using the empty string to clear the component or undefined for uncontrolled components.
in div (created by Unknown)
in div (created by Unknown)
in Unknown (created by RouterContext)
in RouterContext (created by Router)
in Router

Warning: value prop on input should not be null. Consider using the empty string to clear the component or undefined for uncontrolled components.

1、waring忽略不管

2、设置input初始化值位空字符串

<input type="number" maxLength="6" placeholder="选填" value={postcode || ''} />