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; }