How to use the astroturf.jsx function in astroturf

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

github 4Catalyzer / astroturf / test / __file_snapshots__ / loader__css-prop.js View on Github external
function Button4({ theme }) {
  return _j(
    "button",
    {
      css: [require("./css-prop-CssProp4_button.css"), [["a1qka8js", theme]]]
    },
    "Hi there",
    _j("span", {
      css: [require("./css-prop-CssProp5_span.css")]
    })
  );
}
github 4Catalyzer / astroturf / test / __file_snapshots__ / loader__css-prop.js View on Github external
function Button4({ theme }) {
  return _j(
    "button",
    {
      css: [require("./css-prop-CssProp4_button.css"), [["a1qka8js", theme]]]
    },
    "Hi there",
    _j("span", {
      css: [require("./css-prop-CssProp5_span.css")]
    })
  );
}

astroturf

Extract and process inline CSS literals in JavaScript files

MIT
Latest version published 8 months ago

Package Health Score

64 / 100
Full package analysis