this.gui
Preparing search index...
mount
Function mount
mount
(
arg1
:
|
string
|
number
|
boolean
|
Element
|
GuiSpecNode
|
GuiNode
[]
|
null
|
undefined
,
arg2
:
|
string
|
number
|
boolean
|
Element
|
GuiSpecNode
|
GuiNode
[]
|
null
|
undefined
,
arg3
?:
any
,
)
:
{
host
:
Element
;
root
:
ReactRoot
;
unmount
:
()
=>
void
}
Mount (or update) a GUI tree into a DOM host.
Repeated calls with the same host element will
update
the existing React root.
Returns a handle with
root
and
unmount()
.
Parameters
arg1
:
string
|
number
|
boolean
|
Element
|
GuiSpecNode
|
GuiNode
[]
|
null
|
undefined
arg2
:
string
|
number
|
boolean
|
Element
|
GuiSpecNode
|
GuiNode
[]
|
null
|
undefined
arg3
:
any
= {}
Returns
{
host
:
Element
;
root
:
ReactRoot
;
unmount
:
()
=>
void
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
this.gui
Loading...
Mount (or update) a GUI tree into a DOM host.
rootandunmount().