Skip to content

Commit

Permalink
Merge pull request #115 from xmonkee/patch-1
Browse files Browse the repository at this point in the history
Update link to standalone preact+html module
  • Loading branch information
developit authored Jul 30, 2019
2 parents 6b89f63 + 6cf5647 commit ebeb814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const html = htm.bind(React.createElement);

```js
// just want htm + preact in a single file? there's a highly-optimized version of that:
import { html, render } from 'https://unpkg.com/htm/preact/standalone.mjs'
import { html, render } from 'https://unpkg.com/htm/preact/standalone.module.js'
```

## Usage
Expand Down Expand Up @@ -164,7 +164,7 @@ It's a single HTML file, and there's no build or tooling. You can edit it with n
<html lang="en">
<title>htm Demo</title>
<script type="module">
import { html, Component, render } from 'https://unpkg.com/htm/preact/standalone.mjs';
import { html, Component, render } from 'https://unpkg.com/htm/preact/standalone.module.js';
class App extends Component {
addTodo() {
Expand Down

0 comments on commit ebeb814

Please sign in to comment.