Skip to content

Commit

Permalink
[docs] Improve text, fix typos in Getting Started (lit#767)
Browse files Browse the repository at this point in the history
* [docs] Improve text, fix typos in Getting Started

* Update docs/_guide/01-getting-started.md

Co-Authored-By: straversi <[email protected]>

* Update docs/_guide/01-getting-started.md

Co-Authored-By: straversi <[email protected]>
  • Loading branch information
2 people authored and Arthur Evans committed Jan 29, 2019
1 parent 381160d commit 5cb2359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/_guide/01-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ slug: getting-started

### npm

lit-htm is distributed on npm, in the [lit-html package].
lit-html is distributed on npm, in the [lit-html package].

```
npm install lit-html
Expand All @@ -37,7 +37,7 @@ You can try out lit-html without installing anything using an online editor. Bel
## Importing

lit-html is written in and distributed as standard JavaScript modules.
Modules are increasingly supported in JavaScript environments and are shipping in Chrome, Opera and Safari, and soon will be in Firefox and Edge.
Modules are increasingly supported in JavaScript environments and are shipping in Chrome, Opera and Safari, and will soon be in Firefox and Edge.

To use lit-html, import it via a path:

Expand All @@ -50,7 +50,7 @@ To use lit-html, import it via a path:

The JavaScript `import` statement only works inside module scripts (`<script type="module">`), which can be inline scripts (as shown above) or external scripts.

The path to use depends on where you've installed lit-html to. Browsers only support importing other modules by path, not by package name, so without other tools involved, you'll have to use paths.
The path to use depends on where you've installed lit-html. Browsers only support importing other modules by path, not by package name, so without other tools involved, you'll have to use paths.

If you use a tool that converts package names into paths, then you can import by package name:

Expand All @@ -64,7 +64,7 @@ import {html, render} from 'lit-html';

lit-html has two main APIs:

* The `html` template tag used to write templates
* The `html` template tag used to write templates.
* The `render()` function used to render a template to a DOM container.

```ts
Expand Down

0 comments on commit 5cb2359

Please sign in to comment.