Skip to content

Commit a5d93da

Browse files
committed
v5.0.1: stop using ReactDOM directly (only via client)
1 parent 7e29e2c commit a5d93da

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

cypress/integration/ReactShadowDOM.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useEffect } from 'react'
2-
import ReactDOM from 'react-dom'
32
import { ReactShadowDOM } from '../../src'
43

54
describe('ReactShadowDOM', () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/react-shadow-dom",
33
"moduleName": "ReactShadowDOM",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
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",

rollup.globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
'react-dom': 'ReactDOM',
2+
'react-dom': 'ReactDOM'
33
}

src/unmount.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import ReactDOM from 'react-dom'
2-
31
function unmount({ insideRoot, outsideContainer }) {
42
insideRoot.unmount()
53
outsideContainer.remove()

0 commit comments

Comments
 (0)