Redux - how to pass a generated prop to a sibling selector function?

后端 未结 0 1800
长情又很酷
长情又很酷 2021-01-24 08:26

I have this component:

class Foo extends React.Component {
    ...
}

const mapStateToProps = (state, ownProps) => ({
    id: getId(state),
    item: getItem(s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题