I have 2 Components in a file and I am trying to supercharge them and export them as HOCs.
export default withStyles(styles)(Component1);
export withStyles(styles)(Component2);
But, I am getting error on second export. However, if I change it to:
export Component2OtherWay = withStyles(styles)(Component2);
Then, it is working fine. Could anyone explain this to me?
Cheers!