Skip to content

Commit ebeb814

Browse files
authored
Merge pull request #115 from xmonkee/patch-1
Update link to standalone preact+html module
2 parents 6b89f63 + 6cf5647 commit ebeb814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const html = htm.bind(React.createElement);
6666

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

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

0 commit comments

Comments
 (0)