https://linen.dev logo
For jss I do things like that (but in material-ui)...
# react
u
For jss I do things like that (but in material-ui):
Copy code
@:publicProps(MyComponentProps)
@:wrap(Styles.withStyles(styles))
class MyComponent extends ReactComponentOfProps<Props> {
  public static function styles(theme:MyTheme):ClassesDef<TClasses> {
    return Styles.jss({
      header: {
        flexShrink: 0,
        color: theme.palette.text.inverted,
        height: 40,
        "@media print": {
          display: "none"
        }
      },
      // ...
    });
  }

  // ...
}