p
react_dom
package react_dom
scala.js entry point of react-dom. There may be functions here that are only present
on experimental builds of react. The functions renderToElementWithId
,
createPortalInElementWithId
, and render
should always be available.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- react_dom
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait Concurrent extends Object
- Annotations
- @JSType() @native()
- trait CreateRootOptions extends Object
- Annotations
- @JSType()
- trait Renderable extends Object
- Annotations
- @JSType() @native()
Value Members
- def createBlockingRoot(id: String): Either[String, (ReactNode) => Unit]
- def createPortalInElementWithId(node: ReactNode, id: String, key: Option[String] = None): Either[Throwable, ReactPortal]
Render the DOM given an element id using react's portal.
- def createRoot(id: String): Either[String, (ReactNode) => Unit]
Render using concurrent mode.
Render using concurrent mode. Left is an error message and right is a render function.
- def findDOMNode(componentOrElement: Any): Element
- def hydrate(element: Element, container: Element, done: Function0[Unit]): Unit
- def render(node: ReactNode, target: Element): Unit
- def renderCB(node: ReactNode, target: Element, cb: Function0[Unit]): Unit
- def renderToElement(id: String, cb: Option[() => Unit] = None): Either[String, (ReactNode) => Unit]
- def renderToElementWithId(el: ReactNode, id: String, cb: Option[() => Unit] = None): Either[Throwable, Unit]
Render into the DOM given an element id.
- def unmountComponentAtNode(el: Element): Boolean
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.