How to use the isomorphic-style-loader/lib/withStyles.default function in isomorphic-style-loader

To help you get started, we’ve selected a few isomorphic-style-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TylorShin / beyond.ts / src / components / app / index.tsx View on Github external
const withStyles: (styles: any) => Function = require("isomorphic-style-loader/lib/withStyles").default;
const styles = require("./app.scss");

class App extends React.Component<{}, {}> {
  public render() {
    return (
      <div>
        <h1>Hello World!</h1>
        <div>This component is synchronously loaded!</div>
      </div>
    );
  }
}

export default withStyles(styles)(App);

isomorphic-style-loader

CSS style loader for Webpack optimized for critical path CSS rendering and isomoprhic web apps

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis