const lazyLoad = ( ) => import ( "remote_app/Button" ) ; import addButton from "./button" ; function addDiv ( root ) { const newDiv = document . createElement ( "div" ) ; const newContent = document . createTextNode ( "Hi from host" ) ; newDiv . appendChild ( newContent ) ; document . getElementById ( root ) . appendChild ( newDiv ) ; } addDiv ( "root" ) ; addButton ( "root" ) ; lazyLoad ( ) . then ( item => item . default ( "root" ) ) ;