forked from LarsDenBakker/lit-html-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-hello-world.html
32 lines (26 loc) · 889 Bytes
/
1-hello-world.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script type="module">
/**
* Assignment 1:
* Create a LitElement component that prints 'hello world'
*
* - Create a web component which extends from LitElement
* - Implement a render method, which returns a lit-html template
* - Register your element using customElements.define
* - Add your element to the <body> so that it will become visible
*
* Check out the README.md for reference documentation
*
* Copy paste into plnkr: http://plnkr.co/edit/DI9312Rn54NuIH7FRzzD?p=preview
*/
// import LitElement from the unpkg CDN as a module, it makes this code work anywhere
import { LitElement, html, css } from 'https://unpkg.com/[email protected]?module';
</script>
</head>
<body>
</body>
</html>