I am now trying to now use kotlin-react-css instead of styled components.
I am aware of the kotlin-react-table-example
But how do I now add global css ?
with kotlinx.css I used to do something like
Copy code
package css
// ... imports
val GlobalStyle = CssBuilder().apply {
// my global css goes here
}
and then did
Copy code
import css.GlobalStyle
in my main components file App.kt
t
turansky
03/15/2022, 2:41 PM
Emotion
Global
component can be used for this problem
turansky
03/15/2022, 2:41 PM
i
iari
03/16/2022, 8:29 AM
what package does
simpleComponent
come from? autocompletion suggests no import.
It appears that
kotlin-emotion
is already being depended on by
kotlin-react-css
.
Do I have to add another dependencie aside from
kotlin-react-css
?
Do I need it or can I just add it in a custom
FC<Props>
or
FC<GlobalProps>
?
Is the project you screenshotted the code from available somewhere on publically?