ReactDOM

slinky.web.ReactDOM$
object ReactDOM extends Object

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def createPortal(child: ReactElement, container: Element, key: UndefOr[String]): 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

Attributes

child

the React node to render inside the selected container

container

the DOM node to render the child node inside

key

an optional key to distinguish this from other elements

Returns:

a portal React element

def findDOMNode(instance: Component): Element
def flushSync[T](callback: Function0[T]): T
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

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object