Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function LegacyComponent(props) {
styletron.injectOnce('.legacyStyle { color: magenta }', '__legacy_style__');
return React.createElement('div',
{className: 'legacyStyle'}, 'I am a legacy component');
}