You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
lcoder
changed the title
书本第180页,TODOList
书本第180页,TodoList链接到了store,但是TodoItem并没有吧,mapStateToProps为null,不是很理解
Dec 17, 2018
lcoder
changed the title
书本第180页,TodoList链接到了store,但是TodoItem并没有吧,mapStateToProps为null,不是很理解
书本第180页,TodoList链接到了store,但是TodoItem并没有,mapStateToProps为null,不是很理解
Dec 17, 2018
最后的一部分内容:
todoItem第47行代码。
看了
TodoItem
的代码,里面没用到store,书中说这样写是为了:如果被测试的组件并不包含任何其他链接到store的子组件,那就可以直接在组件渲染中用名为store的prop。可被测试的组件如果压根没用到store,那这样子写是为了什么?是connect之后的被链接的组件会取this.props.store吗?这里不是很理解,感谢解答The text was updated successfully, but these errors were encountered: