Skip to content

Instantly share code, notes, and snippets.

const ShadowRoot = ({ content, children }) => {
const container = useRef(null);
useEffect(() => {
if (container) {
const shadowRoot = container.current.attachShadow({ mode: 'open' });
ReactDOM.render(children, shadowRoot);
}
}, []);
return (
<div style={{ height: '100%', width: '100%' }} ref={container}>
git config --global user.name "Alex G. Wolff"
git config --global user.email [email protected]