./11-src/src/home.jsx有个地方是写错了吧?
jarrelljiang opened this issue · 0 comments
jarrelljiang commented
`// 通过这种特性使用 redux connect, 我们可以把如下代码:
/*
let mapStateToProps = (state) => { ... }
@connect(mapStateToProps)
export default class MyClass {}
*/
// 替换成:
/*
let mapStateToProps = (state) => { ... }
class MyClass {}
export default connect(mapStateToProps)(MyClass)
*/`
这里写反了吧?