File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @depay/react-shadow-dom" ,
33 "moduleName" : " ReactShadowDOM" ,
4- "version" : " 5.0.1 " ,
4+ "version" : " 5.0.2 " ,
55 "description" : " A library to easily render react compatible shadow DOMs for web components with individual styling for inside and outside." ,
66 "main" : " ./dist/umd/index.js" ,
77 "module" : " ./dist/esm/index.js" ,
Original file line number Diff line number Diff line change 11export default {
2- 'react-dom' : 'ReactDOM'
2+ 'react-dom' : 'ReactDOM' ,
3+ 'react-dom/client' : 'ReactDOMClient' ,
34}
Original file line number Diff line number Diff line change 1- import { createRoot } from 'react-dom/client'
1+ import * as ReactDOMClient from 'react-dom/client'
22import { createInsideContainer } from './insideContainer'
33import { createOutsideContainer } from './outsideContainer'
44import { createShadow } from './shadow'
@@ -32,7 +32,7 @@ function ReactShadowDOM({
3232 content = content ( insideContainer )
3333 }
3434
35- const insideRoot = createRoot ( insideContainer )
35+ const insideRoot = ReactDOMClient . createRoot ( insideContainer )
3636 insideRoot . render ( content )
3737
3838 return { content, unmount : ( ) => unmount ( { insideRoot, outsideContainer } ) }
You can’t perform that action at this time.
0 commit comments