File tree 3 files changed +5
-6
lines changed
src/idom/client/app/packages 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { mountLayoutWithWebSocket } from "idom-client-react" ;
2
- import { unmountComponentAtNode } from "react-dom" ;
3
2
4
3
// imported so static analysis knows to pick up files linked by user-packages.js
5
4
import ( "./user-packages.js" ) . then ( ( module ) => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " idom-client-react" ,
3
3
"description" : " A client for IDOM implemented in React" ,
4
- "version" : " 0.8.0 " ,
4
+ "version" : " 0.8.1 " ,
5
5
"author" : " Ryan Morshead" ,
6
6
"license" : " MIT" ,
7
7
"type" : " module" ,
Original file line number Diff line number Diff line change 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" ;
3
3
import { Layout } from "./component.js" ;
4
4
5
5
export function mountLayout ( mountElement , layoutProps ) {
6
- render ( createElement ( Layout , layoutProps ) , mountElement ) ;
6
+ reactDOM . render ( react . createElement ( Layout , layoutProps ) , mountElement ) ;
7
7
}
8
8
9
9
export function mountLayoutWithWebSocket (
@@ -39,7 +39,7 @@ function mountLayoutWithReconnectingWebSocket(
39
39
console . log ( `Connected.` ) ;
40
40
41
41
if ( mountState . everMounted ) {
42
- unmountComponentAtNode ( element ) ;
42
+ reactDOM . unmountComponentAtNode ( element ) ;
43
43
}
44
44
_resetOpenMountState ( mountState ) ;
45
45
You can’t perform that action at this time.
0 commit comments