From 47d01010a61062a87b599991a4ce3898e434af42 Mon Sep 17 00:00:00 2001 From: Juhyeok Kang Date: Thu, 15 Aug 2024 22:26:17 +0900 Subject: [PATCH] fix: fix one-page example rendering (#1337) --- examples/one-page/index.html | 2 +- examples/one-page/scripts/one-page.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/one-page/index.html b/examples/one-page/index.html index 0cfba61f..5cf3f921 100644 --- a/examples/one-page/index.html +++ b/examples/one-page/index.html @@ -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", diff --git a/examples/one-page/scripts/one-page.js b/examples/one-page/scripts/one-page.js index a4e2c28d..3b1f1e5e 100644 --- a/examples/one-page/scripts/one-page.js +++ b/examples/one-page/scripts/one-page.js @@ -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; }