【问题标题】:how to integrate stylesheet and actions in reactjs如何在 reactjs 中集成样式表和操作
【发布时间】:2019-02-15 21:07:48
【问题描述】:
export default withStyles(styles, { withTheme: true })(Newproject)
export default connect(null, { Newproject })(Newproject)

如何将这两者整合到同一个文件中?

【问题讨论】:

标签: reactjs react-redux


【解决方案1】:

这样使用。

export default connect(null, { Newproject })(withStyles(styles, { withTheme: true })(Newproject));

【讨论】:

    猜你喜欢
    • 2018-11-30
    • 2020-02-24
    • 1970-01-01
    • 2020-10-22
    • 2013-10-15
    • 2020-03-19
    • 1970-01-01
    • 2018-01-30
    • 1970-01-01
    相关资源
    最近更新 更多