如果withStyles HOC被调用togeteher,如何使用reduxForm装饰导出组件?

时间:2018-05-14 20:32:05

标签: react-redux material-ui redux-form

我想用reduxForm装饰我的组件,但是正在调用函数withStyles。我怎么装饰?

const mapStateToProps = state => ({summary: state.dashboard.summary})
const mapDispatchToProps = dispatch => bindActionCreators({dashboardList}, dispatch)
export default connect(mapStateToProps, mapDispatchToProps)(Dashboard);

export default withStyles(dashboardStyle)(Dashboard);(Here!! How can i do it???)

0 个答案:

没有答案