The documentation for the styled library says you ...
# react
c
The documentation for the styled library says you can call
StyledComponents.injectGlobal(styles.toString())
to inject global styles. However, it doesn't specify where you can call that. I've tried calling it from just about every part of my app and can never get it to work. I always get a receiver mismatch error. Could someone help provide a little more context on how this is used?
Copy code
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public operator fun <P : RProps, R : RProps> HOC<???, ???>.invoke(config: Any, component: RBuilder.(???) -> Unit): RClass<???> defined in react
public operator fun <P : RProps, R : RProps> HOC<???, ???>.invoke(component: RBuilder.(???) -> Unit): RClass<???> defined in react
public operator fun <P : RProps, R : RProps> HOC<???, ???>.invoke(component: RClass<???>): RClass<???> defined in react
b
@Filipp Riabchun @Leonid Khachaturov could you please help?
c
ping! Still a bit perplexed by this one
f
No idea, sorry