Skip to content

Commit 197f711

Browse files
committed
chore: pin react and react-dom versions in one-page script
1 parent 029e87b commit 197f711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)