How do you convert CSS to JSS without modifying the component to be styled?
I am using emoji-mart picker for my React project and for it to be usable, there's a css file I need to import. However, we have a parser that cannot support imported css files and I think converting it to JSS is the answer, but I cannot get it to work so far.
I have tried converting it to a styles object and injecting it using withStyles and injectStyles, without much luck.
<div className="emoji-mart-bar">
The component I am trying to style looks like the one above and I think the reason why withStyles and injectStyles won't work is because it does not use className={classes.[className]} but I could be wrong. Thanks in advance!
className
and just use normal site-wide CSS, scoped to only kick in for your element tree as you'd do with plain HTML+CSS? – Mike 'Pomax' Kamermans