Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道我们如何在同一个导出中使用 Redux Connect 和 Customized HOC。例如,我们有组件“TestComponent”和 HOC“WithSampleHOC”和“Connect”。
导出默认.....?
尝试:
export default connect(mapStateToProps, mapDispatchToProps)(WithSampleHOC(Component));