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

How do I integrate this two in same file?

Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
munawar
  • 5
  • 1
  • 3
  • 1
    Possible duplicate of [React Material UI - Export multiple higher order components](https://stackoverflow.com/questions/45704681/react-material-ui-export-multiple-higher-order-components) – Bhojendra Rauniyar Sep 11 '18 at 11:20

1 Answers1

0

Use like this.

export default connect(null, { Newproject })(withStyles(styles, { withTheme: true })(Newproject));
Amruth
  • 5,792
  • 2
  • 28
  • 41