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:/
3838
3939To create a new class based on LitElement:
4040
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:
4542
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**
4753
4854_ my-element.js_
4955
You can’t perform that action at this time.
0 commit comments