mfe-react
Version:
React Micro-Frontend Component Wrapper
13 lines (11 loc) • 493 B
JavaScript
import React from 'react';
const style = `button { color:blue !important; }`;
const DestructiveStyleComponent = (props) => {
return <div>
<style>{style}</style>
<p>This component contains a style block with a destructive global style that changes all buttons.</p>
<pre><style>{style}</style></pre>
<p>This style bleeds out and affects all buttons on the page, outside of this MFE.</p>
</div>
}
export default DestructiveStyleComponent;