I tried the following withTheme(withStyles(styles)(Modal))
but it doesn't work and gives me a warning
Functions are not valid as a React child. This may happen if you return a Component instead of
from render. Or maybe you meant to call this function rather than return it.
@ilyador You have different options:
export default withTheme()(withStyles(styles)(Modal));
```js
export default withStyles(styles, { withTheme: true })(Modal);
```js
import { compose }聽from 'recompose';
export default compose(
withTheme(),
withStyles(styles)
)(Modal);
Most helpful comment
@ilyador You have different options:
```js
export default withStyles(styles, { withTheme: true })(Modal);