Last active
February 20, 2020 20:13
-
-
Save Yengas/edefecc18a034530d2d3cdf29cb27736 to your computer and use it in GitHub Desktop.
Micro-frontend architecture and React with Web Components
This file contains hidden or 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 root from 'react-shadow'; | |
| import styles from './components/index.scss'; | |
| class SellerStoreEditorWebComponent extends HTMLElement { | |
| // ... | |
| private getComponentToRender() { | |
| return ( | |
| <root.div> | |
| <SellerStoreEditor /> | |
| <style type="text/css">{styles}</style> | |
| </root.div> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment