【发布时间】:2020-08-25 06:08:04
【问题描述】:
TypeError: Cannot read property 'searchField' of undefined
Function.mapStateToProps [as mapToProps]
C:/Users/windw/Desktop/robofriends/src/containers/App.js:11
8 |
9 | const mapStateToProps = state => {
10 | return {
> 11 | searchField: state.searchRobots.searchField
12 | }
13 | }
14 |
【问题讨论】:
-
对不起 searchField 而不是 toLowerCase
-
能否请您复制粘贴您的组件代码而不是图像?
-
state中没有searchRobots
标签: javascript reactjs