I have several styled components, using the withStyles
HOC to export them, but i can't override some rules because jss mix the order of mui stylesheets with my component's stylesheets.
How can I push my styles to the end?
Me and my team also stumbled upon this and we managed to find a solution. Apparently withStyles, takes an option object as parameter. So in order to solve this issue, you need to pass a parameter index with a value of 1. So what you get is this:
withStyles(styles, {index: 1})(yourComponent)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With