Skip to content

Commit

Permalink
fix: fix one-page example rendering (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 authored Aug 15, 2024
1 parent 494c8b7 commit 47d0101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/one-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"query-string": "https://esm.sh/v121/query-string@^[email protected]",
"react": "https://esm.sh/v121/[email protected][email protected]",
"react/jsx-runtime": "https://esm.sh/v121/[email protected]/[email protected]",
"react-dom": "https://esm.sh/v121/react-dom@>=18.0[email protected]",
"react-dom": "https://esm.sh/v121/react-dom@18.2[email protected]",
"react-fast-compare": "https://esm.sh/v121/react-fast-compare@^[email protected]",
"react-is": "https://esm.sh/v121/react-is@^[email protected]",
"react-spring": "https://esm.sh/v121/react-spring@^[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions examples/one-page/scripts/one-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const USE_LOCAL = false;
// Import Map
// ================================================================================================
const importUrl = (k, v, extra = '') => {
// Pin react.
if (k === 'react') {
// Pin react and react-dom.
if (k === 'react' || k === 'react-dom') {
v = reactVersion;
}

Expand Down

0 comments on commit 47d0101

Please sign in to comment.