Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
print(val, printer) {
return printer(
stringify(parse(sheet.tags.map(tag => tag.textContent || '').join('')))
)
}
})