Skip to content

Instantly share code, notes, and snippets.

@Yengas
Last active February 20, 2020 20:13
Show Gist options
  • Select an option

  • Save Yengas/edefecc18a034530d2d3cdf29cb27736 to your computer and use it in GitHub Desktop.

Select an option

Save Yengas/edefecc18a034530d2d3cdf29cb27736 to your computer and use it in GitHub Desktop.
Micro-frontend architecture and React with Web Components
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