File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,18 @@ Read on to create a component, or [download a sample LitElement project](https:/
38
38
39
39
To create a new class based on LitElement:
40
40
41
- * Import the ` LitElement ` base class and the ` html ` helper function.
42
- * Create a new class that extends the ` LitElement ` base class.
43
- * Implement ` render ` to define a template for your web component.
44
- * Register your component's HTML tag with the browser.
41
+ 1 . In your project folder, install the ` lit-element ` package from npm:
45
42
46
- For example:
43
+ ` npm install lit-element `
44
+
45
+ 2 . Write your new element:
46
+
47
+ * Import the ` LitElement ` base class and the ` html ` helper function.
48
+ * Create a new class that extends the ` LitElement ` base class.
49
+ * Implement ` render ` to define a template for your web component.
50
+ * Register your component's HTML tag with the browser.
51
+
52
+ ** Example**
47
53
48
54
_ my-element.js_
49
55
You can’t perform that action at this time.
0 commit comments