How to avoid passing dispatch as a prop to component that requires it, but receives dispatch via connect()?

前端 未结 0 323
半阙折子戏
半阙折子戏 2020-12-12 10:44

I have a component that has dispatch connected to it:

function MyComponent(props: Props) {
...
}

interface Props {
    dispatch: any
}

export default connec         


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