Object/Trait

japgolly.scalajs.react

React

Related Docs: trait React | package react

Permalink

object React extends Object with React

Annotations
@native()
Linear Supertypes
React, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. React
  2. React
  3. Object
  4. Any
  5. AnyRef
  6. 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.

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

    Definition Classes
    React
  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!')

    Definition Classes
    React
  6. def addons: Dynamic

    Permalink
    Definition Classes
    React
  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 cloneElement(element: ReactElement, props: Object, children: ReactNode*): ReactElement

    Permalink

    Clone and return a new ReactElement using element as the starting point.

    Clone and return a new ReactElement using element as the starting point. The resulting element will have the original element's props with the new props merged in shallowly. New children will replace existing children. Unlike React.addons.cloneWithProps, key and ref from the original element will be preserved. There is no special behavior for merging any props (unlike cloneWithProps).

    Definition Classes
    React
  10. def createClass[P, S, B, N <: TopNode](spec: ReactComponentSpec[P, S, B, N]): ReactClass[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.

    Definition Classes
    React
  11. def createElement(fc: WithChildren[Nothing], props: Object, children: ReactNode*): ReactDOMElement

    Permalink
    Definition Classes
    React
  12. def createElement(fc: FunctionalComponent[Nothing], props: Object, children: ReactNode*): ReactDOMElement

    Permalink
    Definition Classes
    React
  13. def createElement(tag: String, props: Object, children: ReactNode*): ReactDOMElement

    Permalink

    Create and return a new ReactElement of the given type.

    Create and return a new ReactElement of the given type. The type argument can be either an html tag name string (eg. 'div', 'span', etc), or a ReactClass (created via React.createClass).

    Definition Classes
    React
  14. def createElement[P, S, B, N <: TopNode](t: ReactClass[P, S, B, N]): ReactComponentCU[P, S, B, N]

    Permalink

    Create and return a new ReactElement of the given type.

    Create and return a new ReactElement of the given type. The type argument can be either an html tag name string (eg. 'div', 'span', etc), or a ReactClass (created via React.createClass).

    Definition Classes
    React
  15. def createFactory[P <: Any, S <: Any, N <: TopNode](t: JsComponentType[P, S, N]): JsComponentC[P, S, N]

    Permalink

    Return a function that produces ReactElements of a given type.

    Return a function that produces ReactElements of a given type. Like React.createElement, the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a ReactClass.

    Definition Classes
    React
  16. def createFactory[P, S, B, N <: TopNode](t: ReactClass[P, S, B, N]): ReactComponentCU[P, S, B, N]

    Permalink

    Return a function that produces ReactElements of a given type.

    Return a function that produces ReactElements of a given type. Like React.createElement, the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a ReactClass.

    Definition Classes
    React
  17. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

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

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

    Permalink

    Verifies the object is a ReactElement.

    Verifies the object is a ReactElement.

    Definition Classes
    React
  26. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    Object
  30. 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.

    Definition Classes
    React
  31. 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 ReactDOM.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.

    Definition Classes
    React
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. def valueOf(): Any

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

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

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

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

Deprecated Value Members

  1. def findDOMNode[N <: TopNode](component: Mounted[N]): N

    Permalink
    Definition Classes
    React
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) As of React 0.14, you must use ReactDOM.findDOMNode instead.

  2. 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
    Definition Classes
    React
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) As of React 0.14, you must use ReactDOM.render instead.

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

    Permalink
    Definition Classes
    React
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) As of React 0.14, you must use ReactDOM.render instead.

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

    Permalink
    Definition Classes
    React
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) As of React 0.14, you must use ReactDOM.render instead.

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

    Permalink
    Definition Classes
    React
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) As of React 0.14, you must use ReactDOM.render instead.

  6. def unmountComponentAtNode(container: Node): Boolean

    Permalink
    Definition Classes
    React
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) As of React 0.14, you must use ReactDOM.unmountComponentAtNode instead.

Inherited from React

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped