File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
src/idom/client/app/packages Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11import { 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
54import ( "./user-packages.js" ) . then ( ( module ) => {
Original file line number Diff line number Diff line change 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" ,
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" ;
33import { Layout } from "./component.js" ;
44
55export function mountLayout ( mountElement , layoutProps ) {
6- render ( createElement ( Layout , layoutProps ) , mountElement ) ;
6+ reactDOM . render ( react . createElement ( Layout , layoutProps ) , mountElement ) ;
77}
88
99export 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
You can’t perform that action at this time.
0 commit comments