Skip to content

./11-src/src/home.jsx有个地方是写错了吧? #47

Description

@jarrelljiang

`// 通过这种特性使用 redux connect, 我们可以把如下代码:

/*
let mapStateToProps = (state) => { ... }
@connect(mapStateToProps)
export default class MyClass {}
*/

// 替换成:

/*
let mapStateToProps = (state) => { ... }
class MyClass {}
export default connect(mapStateToProps)(MyClass)
*/`

这里写反了吧?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions