Skip to content

Commit 1f41cf4

Browse files
committed
Remove mount and unmount
1 parent b36b6eb commit 1f41cf4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ const ReactCSSOM = {
66
React.Component = inject(React.Component)();
77
},
88
inject,
9-
mount: (css) => {
10-
const head = document.head || document.getElementsByTagName('head')[0];
11-
const style = document.createElement('style');
12-
style.type = 'text/css';
13-
if (style.styleSheet) {
14-
style.styleSheet.cssText = css;
15-
} else {
16-
style.appendChild(document.createTextNode(css));
17-
}
18-
head.appendChild(style);
19-
return style;
20-
},
21-
unmount: (style) => {
22-
const head = document.head || document.getElementsByTagName('head')[0];
23-
head.removeChild(style);
24-
},
259
};
2610

2711
export default ReactCSSOM;

0 commit comments

Comments
 (0)