Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import {html, render} from 'lit-html';
  2.  
  3. export default class MyComponent {
  4. constructor(root, props) {
  5. this.root = root;
  6. this.props = props;
  7. this.render();
  8. }
  9.  
  10. render() {
  11. const {foo} = this.props;
  12.  
  13. render(html`
  14. <div>${foo}</div>
  15. `, this.root);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement