1.Unchecked runtime.lastError: The message port closed before a response was received.
原因:扩展程序问题
建议:浏览器中打开chrome://extensions/,逐一关闭排查
以我的为例,发现罪魁祸首是添加了迅雷扩展程序,最后关闭就好。
2.Warning: A component is changing a controlled input of type text to be uncontrolled.
注意input输入框获取值必须通过this.state,更新值必须通过this.setstate,input取值的具体方法查看链接https://reactjs.org/docs/forms.html#controlled-components