ReactDOM

@native @JSImport("react-dom", "ReactDOM") @JSType object ReactDOM extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def createPortal(child: ReactElement, container: Element): ReactElement

React Docs - Creates a portal. Portals provide a way to render children into a DOM node that exists outside the hierarchy of the DOM component.

React Docs - Creates a portal. Portals provide a way to render children into a DOM node that exists outside the hierarchy of the DOM component.

React 16 only

Value Params
child

the React node to render inside the selected container

container

the DOM node to render the child node inside

Returns

a portal React element

def findDOMNode(instance: Component): Element
def hydrate(component: ReactElement, target: Element): ReactInstance
def render(component: ReactElement, target: Element): ReactInstance
def unmountComponentAtNode(container: Element): Unit

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object