File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
preview/src/containers/Preview Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @instantcommerce/cli" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.3.2 " ,
4
4
"author" : " Instant Commerce B.V." ,
5
5
"license" : " MIT" ,
6
6
"bin" : {
Original file line number Diff line number Diff line change 1
1
import { useEffect , useMemo , useState } from 'react' ;
2
2
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' ;
4
5
import { HelmetProvider } from 'react-helmet-async' ;
5
6
6
7
import { getStore } from '../../lib/getStore' ;
7
8
import { BlockRenderer } from './BlockRenderer' ;
8
9
import { Head } from './Head' ;
9
10
10
11
window . React = React ;
12
+ window . ReactDOM = {
13
+ ...ReactDOM ,
14
+ ...ReactDOMClient ,
15
+ } ;
11
16
12
17
const Preview = ( ) => {
13
18
const [ error , setError ] = useState ( '' ) ;
@@ -63,4 +68,4 @@ const Preview = () => {
63
68
) ;
64
69
} ;
65
70
66
- ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render ( < Preview /> ) ;
71
+ ReactDOMClient . createRoot ( document . getElementById ( 'root' ) ! ) . render ( < Preview /> ) ;
You can’t perform that action at this time.
0 commit comments