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@^7.1.3?deps=react@18.2.0",
"react": "https://esm.sh/v121/react@18.2.0?deps=react@18.2.0",
"react/jsx-runtime": "https://esm.sh/v121/react@18.2.0/jsx-runtime?deps=react@18.2.0",
"react-dom": "https://esm.sh/v121/react-dom@>=18.0.0?deps=react@18.2.0",
"react-dom": "https://esm.sh/v121/react-dom@18.2.0?deps=react@18.2.0",
"react-fast-compare": "https://esm.sh/v121/react-fast-compare@^3.2.0?deps=react@18.2.0",
"react-is": "https://esm.sh/v121/react-is@^18.1.0?deps=react@18.2.0",
"react-spring": "https://esm.sh/v121/react-spring@^9.5.5?deps=react@18.2.0",
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.