I\'m getting the following error after upgrading to MUI v4.0.2 from v3.9.x:
You must pass a component to the function returned by connect. Instead rec
This is how I do it:
import { withStyles } from '@material-ui/core/styles';
Define your styles object: look at the material-ui examples for guidance
const styles => ({ root: { display: 'flex', } });
Then export the component using your styles:
export default withStyles(styles)(YourComponent);