Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {html, render} from 'lit-html';
- export default class MyComponent {
- constructor(root, props) {
- this.root = root;
- this.props = props;
- this.render();
- }
- render() {
- const {foo} = this.props;
- render(html`
- <div>${foo}</div>
- `, this.root);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement