Trait/Object

japgolly.scalajs.react

React

Related Docs: object React | package react

Permalink

trait React extends Object

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. React
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def Children: ReactChildren

    Permalink

    React.Children provides utilities for dealing with the this.props.children opaque data structure.

  5. def DOM: Dynamic

    Permalink

    React.DOM provides convenience wrappers around React.createElement for DOM components.

    React.DOM provides convenience wrappers around React.createElement for DOM components. These should only be used when not using JSX. For example, React.DOM.div(null, 'Hello World!')

  6. def addons: Dynamic

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def createClass[P, S, B, N <: TopNode](spec: ReactComponentSpec[P, S, B, N]): ReactComponentType[P, S, B, N]

    Permalink

    Create a component given a specification.

    Create a component given a specification. A component implements a render method which returns one single child. That child may have an arbitrarily deep child structure. One thing that makes components different than standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you.

  10. def createElement(tag: String, props: Object, children: ReactNode*): ReactDOMElement

    Permalink
  11. def createElement[P, S, B, N <: TopNode](t: ReactComponentType[P, S, B, N]): ReactComponentCU[P, S, B, N]

    Permalink
  12. def createFactory[P <: Any, S <: Any, N <: TopNode](t: JsComponentType[P, S, N]): JsComponentC[P, S, N]

    Permalink
  13. def createFactory[P, S, B, N <: TopNode](t: ReactComponentType[P, S, B, N]): ReactComponentCU[P, S, B, N]

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def initializeTouchEvents(shouldUseTouch: Boolean): Unit

    Permalink

    Configure React's event system to handle touch events on mobile devices.

  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  23. def isValidElement(o: Any): Boolean

    Permalink

    Verifies the object is a ReactElement.

  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  28. def render[P, S, B, N <: TopNode](component: ReactComponentU[P, S, B, N], container: Node, callback: ThisFunction0[ReactComponentM[P, S, B, N], Unit]): ReactComponentM[P, S, B, N]

    Permalink

    Render a Scala-based React component into the DOM in the supplied container and return a reference to the component.

    Render a Scala-based React component into the DOM in the supplied container and return a reference to the component.

    If the ReactElement was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary to reflect the latest React component.

    If the optional callback is provided, it will be executed after the component is rendered or updated.

  29. def render[P, S, B, N <: TopNode](component: ReactComponentU[P, S, B, N], container: Node): ReactComponentM[P, S, B, N]

    Permalink

    Render a Scala-based React component into the DOM in the supplied container and return a reference to the component.

    Render a Scala-based React component into the DOM in the supplied container and return a reference to the component.

    If the ReactElement was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary to reflect the latest React component.

    If the optional callback is provided, it will be executed after the component is rendered or updated.

  30. def render(element: ReactElement, container: Node, callback: ThisFunction): ReactComponentM_[TopNode]

    Permalink

    Render a ReactElement into the DOM in the supplied container and return a reference to the component.

    Render a ReactElement into the DOM in the supplied container and return a reference to the component.

    If the ReactElement was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary to reflect the latest React component.

    If the optional callback is provided, it will be executed after the component is rendered or updated.

  31. def render(element: ReactElement, container: Node): ReactComponentM_[TopNode]

    Permalink

    Render a ReactElement into the DOM in the supplied container and return a reference to the component.

    Render a ReactElement into the DOM in the supplied container and return a reference to the component.

    If the ReactElement was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary to reflect the latest React component.

    If the optional callback is provided, it will be executed after the component is rendered or updated.

  32. def renderToStaticMarkup(e: ReactElement): String

    Permalink

    Similar to renderToString, except this doesn't create extra DOM attributes such as data-react-id, that React uses internally.

    Similar to renderToString, except this doesn't create extra DOM attributes such as data-react-id, that React uses internally. This is useful if you want to use React as a simple static page generator, as stripping away the extra attributes can save lots of bytes.

  33. def renderToString(e: ReactElement): String

    Permalink

    Render a ReactElement to its initial HTML.

    Render a ReactElement to its initial HTML. This should only be used on the server. React will return an HTML string. You can use this method to generate HTML on the server and send the markup down on the initial request for faster page loads and to allow search engines to crawl your pages for SEO purposes.

    If you call React.render() on a node that already has this server-rendered markup, React will preserve it and only attach event handlers, allowing you to have a very performant first-load experience.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def unmountComponentAtNode(container: Node): Boolean

    Permalink

    Remove a mounted React component from the DOM and clean up its event handlers and state.

    Remove a mounted React component from the DOM and clean up its event handlers and state. If no component was mounted in the container, calling this function does nothing. Returns true if a component was unmounted and false if there was no component to unmount.

  38. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def renderComponent[P, S, B, N <: TopNode](c: ReactComponentU[P, S, B, N], n: Node, callback: ThisFunction0[ReactComponentM[P, S, B, N], Unit]): ReactComponentM[P, S, B, N]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version React 0.12.0) React.renderComponent will be deprecated in a future version. Use React.render instead.

  2. def renderComponent[P, S, B, N <: TopNode](c: ReactComponentU[P, S, B, N], n: Node): ReactComponentM[P, S, B, N]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version React 0.12.0) React.renderComponent will be deprecated in a future version. Use React.render instead.

  3. def renderComponent(c: ReactComponentU_, n: Node, callback: ThisFunction): ReactComponentM_[TopNode]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version React 0.12.0) React.renderComponent will be deprecated in a future version. Use React.render instead.

  4. def renderComponent(c: ReactComponentU_, n: Node): ReactComponentM_[TopNode]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version React 0.12.0) React.renderComponent will be deprecated in a future version. Use React.render instead.

  5. def renderComponentToStaticMarkup(component: ReactComponentU_): String

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version React 0.12.0) React.renderComponentToStaticMarkup will be deprecated in a future version. Use React.renderToStaticMarkup instead.

  6. def renderComponentToString(component: ReactComponentU_): String

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version React 0.12.0) React.renderComponentToString will be deprecated in a future version. Use React.renderToString instead.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped