Skip to content

Commit 4bee104

Browse files
committed
Update examples
1 parent 99aed77 commit 4bee104

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

example/create-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/* eslint-env browser */
88

99
// @ts-expect-error: TS in VS Code doesn’t seem to infer this.
10-
import * as hastscript from 'https://esm.sh/hastscript@7?dev'
10+
import * as hastscript from 'https://esm.sh/hastscript@8?dev'
1111

1212
/** @type {typeof import('hastscript').h} */
1313
const h = hastscript.h

example/vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ <h1><code>Vue</code> + <code>hast-util-to-jsx-runtime</code></h1>
88
<div id=root></div>
99
<script type=module>
1010
/* eslint-env browser */
11-
import {createApp} from 'https://esm.sh/vue@3.3.0-alpha.8?dev'
12-
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue@3.3.0-alpha.8/jsx-runtime?dev'
11+
import {createApp} from 'https://esm.sh/vue@3?dev'
12+
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue@3/jsx-runtime?dev'
1313
import {toJsxRuntime} from './hast-util-to-jsx-runtime.min.js'
1414
import {createTree} from './create-tree.js'
1515

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ Yields:
402402
In a browser, do:
403403

404404
```js
405-
import {h} from 'https://esm.sh/hastscript@7'
405+
import {h} from 'https://esm.sh/hastscript@8'
406406
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@1'
407407
import {Fragment, jsx, jsxs} from 'https://esm.sh/preact@10/jsx-runtime'
408408
import {render} from 'https://esm.sh/preact@10'
@@ -451,10 +451,10 @@ Yields:
451451
In a browser, do:
452452

453453
```js
454-
import {h} from 'https://esm.sh/hastscript@7'
454+
import {h} from 'https://esm.sh/hastscript@8'
455455
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@1'
456456
import {createApp} from 'https://esm.sh/vue@3'
457-
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue-jsx-runtime@0.1/jsx-runtime'
457+
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue@3/jsx-runtime'
458458

459459
createApp(Component).mount('#root')
460460

@@ -500,7 +500,7 @@ Yields:
500500
In a browser, do:
501501

502502
```js
503-
import {h} from 'https://esm.sh/hastscript@7'
503+
import {h} from 'https://esm.sh/hastscript@8'
504504
import {toJsxRuntime} from 'https://esm.sh/hast-util-to-jsx-runtime@1'
505505
import {Fragment, jsx, jsxs} from 'https://esm.sh/solid-js@1/h/jsx-runtime'
506506
import {render} from 'https://esm.sh/solid-js@1/web'

0 commit comments

Comments
 (0)