Skip to content

Commit 68c5db6

Browse files
committed
Merge branch 'beta' of github.com:instantcommerce/instant-sdk into beta
2 parents 072bc36 + aa07c73 commit 68c5db6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@instantcommerce/cli",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"author": "Instant Commerce B.V.",
55
"license": "MIT",
66
"bin": {

packages/preview/src/containers/Preview/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { useEffect, useMemo, useState } from 'react';
22
import * as React from 'react';
3-
import ReactDOM from 'react-dom/client';
3+
import * as ReactDOM from 'react-dom';
4+
import ReactDOMClient from 'react-dom/client';
45
import { HelmetProvider } from 'react-helmet-async';
56

67
import { getStore } from '../../lib/getStore';
78
import { BlockRenderer } from './BlockRenderer';
89
import { Head } from './Head';
910

1011
window.React = React;
12+
window.ReactDOM = {
13+
...ReactDOM,
14+
...ReactDOMClient,
15+
};
1116

1217
const Preview = () => {
1318
const [error, setError] = useState('');
@@ -63,4 +68,4 @@ const Preview = () => {
6368
);
6469
};
6570

66-
ReactDOM.createRoot(document.getElementById('root')!).render(<Preview />);
71+
ReactDOMClient.createRoot(document.getElementById('root')!).render(<Preview />);

0 commit comments

Comments
 (0)