使用redux表单时控制台中的未知道具消息

Muh*_*eek 4 reactjs redux redux-form

我使用redux形式进行反应应用.即时通讯在控制台上面对这种警告呈现形式

warning: Unknown props `initialValue`, `autofill`, `onUpdate`, `valid`, `invalid`, `dirty`, `pristine`, `active`, `touched`, `visited`, `autofilled` on <input> tag. Remove these props from the element.
Run Code Online (Sandbox Code Playgroud)

如何以redux格式解决此警告

tob*_*sen 6

React 15.2.0引入了此警告,以防止人们传递不必要或无效的道具.Redux表单执行了此操作,这可能就是您看到警告的原因.如果你想阅读更多内容,那么在GitHub上的问题跟踪器上有一个封闭的问题.它应该在这个版本中修复,所以尝试更新,警告应该消失.