Skip to content

Commit

Permalink
Add missing step (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate authored Feb 5, 2019
1 parent 6063d0c commit 5ab37c6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/_guide/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ Read on to create a component, or [download a sample LitElement project](https:/

To create a new class based on LitElement:

* Import the `LitElement` base class and the `html` helper function.
* Create a new class that extends the `LitElement` base class.
* Implement `render` to define a template for your web component.
* Register your component's HTML tag with the browser.
1. In your project folder, install the `lit-element` package from npm:

For example:
`npm install lit-element`

2. Write your new element:

* Import the `LitElement` base class and the `html` helper function.
* Create a new class that extends the `LitElement` base class.
* Implement `render` to define a template for your web component.
* Register your component's HTML tag with the browser.

**Example**

_my-element.js_

Expand Down

0 comments on commit 5ab37c6

Please sign in to comment.