How to use the emotion.sheet.tags function in emotion

To help you get started, we’ve selected a few emotion 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 austintackaberry / stocks / client / src / index.js View on Github external
import { sheet } from "emotion";
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";

// This somehow stops Emotion from using unsafe-inline
sheet.tags[0] = document.getElementById("MyEmotionSheet");

ReactDOM.render(, document.getElementById("root"));
registerServiceWorker();
github emotion-js / facepaint / test / setup.js View on Github external
print(val, printer) {
    return printer(
      stringify(parse(sheet.tags.map(tag => tag.textContent || '').join('')))
    )
  }
})