Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f13bf35

Browse files
committedJun 12, 2021
no named exports for react/reactDOM
1 parent 8a99b45 commit f13bf35

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
 

‎src/idom/client/app/packages/idom-app-react/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { mountLayoutWithWebSocket } from "idom-client-react";
2-
import { unmountComponentAtNode } from "react-dom";
32

43
// imported so static analysis knows to pick up files linked by user-packages.js
54
import("./user-packages.js").then((module) => {

‎src/idom/client/app/packages/idom-client-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "idom-client-react",
33
"description": "A client for IDOM implemented in React",
4-
"version": "0.8.0",
4+
"version": "0.8.1",
55
"author": "Ryan Morshead",
66
"license": "MIT",
77
"type": "module",

‎src/idom/client/app/packages/idom-client-react/src/mount.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { createElement } from "react";
2-
import { unmountComponentAtNode, render } from "react-dom";
1+
import * as react from "react";
2+
import * as reactDOM from "react-dom";
33
import { Layout } from "./component.js";
44

55
export function mountLayout(mountElement, layoutProps) {
6-
render(createElement(Layout, layoutProps), mountElement);
6+
reactDOM.render(react.createElement(Layout, layoutProps), mountElement);
77
}
88

99
export function mountLayoutWithWebSocket(
@@ -39,7 +39,7 @@ function mountLayoutWithReconnectingWebSocket(
3939
console.log(`Connected.`);
4040

4141
if (mountState.everMounted) {
42-
unmountComponentAtNode(element);
42+
reactDOM.unmountComponentAtNode(element);
4343
}
4444
_resetOpenMountState(mountState);
4545

0 commit comments

Comments
 (0)
Please sign in to comment.