Created
April 1, 2017 04:11
-
-
Save rogeriochaves/7678e771b6fc3d1bf31cc9f1e184019d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './App'; | |
import './index.css'; | |
class Header extends HTMLElement { | |
attachedCallback() { | |
ReactDOM.render(<App />, this.createShadowRoot()); | |
} | |
} | |
document.registerElement('microfrontends-header', Header); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment