【发布时间】:2019-03-22 17:06:39
【问题描述】:
【问题讨论】:
-
你是如何定义
state的? -
这是发生错误的新文件,如果是愚蠢的错误,请道歉:github.com/ahmedabdo97/robofriends/blob/master/src/containers/…
-
把
App.js的render函数的return语句括在()中试试。有时会弄得一团糟。 -
感谢修复似乎依赖于它的道具,所以我做了 this.props 而不是 this.state 并且它工作正常
标签: javascript reactjs react-redux