Skip to content

Commit 47d0101

Browse files
authored
fix: fix one-page example rendering (#1337)
1 parent 494c8b7 commit 47d0101

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/one-page/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"query-string": "https://esm.sh/v121/query-string@^[email protected]",
2626
"react": "https://esm.sh/v121/[email protected][email protected]",
2727
"react/jsx-runtime": "https://esm.sh/v121/[email protected]/[email protected]",
28-
"react-dom": "https://esm.sh/v121/react-dom@>=18.0[email protected]",
28+
"react-dom": "https://esm.sh/v121/react-dom@18.2[email protected]",
2929
"react-fast-compare": "https://esm.sh/v121/react-fast-compare@^[email protected]",
3030
"react-is": "https://esm.sh/v121/react-is@^[email protected]",
3131
"react-spring": "https://esm.sh/v121/react-spring@^[email protected]",

examples/one-page/scripts/one-page.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const USE_LOCAL = false;
4040
// Import Map
4141
// ================================================================================================
4242
const importUrl = (k, v, extra = '') => {
43-
// Pin react.
44-
if (k === 'react') {
43+
// Pin react and react-dom.
44+
if (k === 'react' || k === 'react-dom') {
4545
v = reactVersion;
4646
}
4747

0 commit comments

Comments
 (0)