Skip to content

Commit 5ab37c6

Browse files
author
Kate
authored
Add missing step (#535)
1 parent 6063d0c commit 5ab37c6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/_guide/start.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ Read on to create a component, or [download a sample LitElement project](https:/
3838

3939
To 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

0 commit comments

Comments
 (0)