Skip to content

Commit 15e4254

Browse files
authored
Update link to standalone preact+html module
The `.mjs` link does not work anymore. Changing README to point to `.module.js` instead. Closes 113
1 parent 753d81d commit 15e4254

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)