japgolly.scalajs.react

React

Related Doc: package react

object React extends Object

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. React
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def Children: ReactChildren

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

  5. def DOM: Dynamic

    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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    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]

    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

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

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

  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Object
  18. def hashCode(): Int

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

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

  20. final def isInstanceOf[T0]: Boolean

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

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

    Verifies the object is a ReactElement.

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

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

    Definition Classes
    Object
  27. def render[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]

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

  29. def render(e: ReactElement, n: Node, callback: ThisFunction): ReactComponentM_[TopNode]

  30. def render(e: ReactElement, n: Node): ReactComponentM_[TopNode]

  31. def renderToStaticMarkup(e: ReactElement): String

    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.

  32. def renderToString(e: ReactElement): String

    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.

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

    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Definition Classes
    Object
  35. def toString(): String

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

    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.

  37. def valueOf(): Any

    Definition Classes
    Object
  38. final def wait(): Unit

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

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

    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]

    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]

    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]

    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]

    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

    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

    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