Class/Object

japgolly.scalajs.react

ReactComponentB

Related Docs: object ReactComponentB | package react

Permalink

final class ReactComponentB[P, S, B, N <: TopNode] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReactComponentB
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReactComponentB(name: String, isf: InitStateFn[P, S], ibf: InitBackendFn[P, S, B], rf: RenderFn[P, S, B], lc: LifeCycle[P, S, B, N], jsMixins: Vector[Any])

    Permalink

Type Members

  1. type BuildFn[Output] = (ReqProps[P, S, B, N]) ⇒ Output

    Permalink
  2. final class Builder[Output] extends AnyRef

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def builder(implicit w: BuildResult[P, S, B, N]): Builder[Out]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def componentDidMount(f: (DuringCallbackM[P, S, B, N]) ⇒ Callback): ReactComponentB[P, S, B, N]

    Permalink

    Invoked once, only on the client (not on the server), immediately after the initial rendering occurs.

    Invoked once, only on the client (not on the server), immediately after the initial rendering occurs. At this point in the lifecycle, the component has a DOM representation which you can access via ReactDOM.findDOMNode(this). The componentDidMount() method of child components is invoked before that of parent components.

    If you want to integrate with other JavaScript frameworks, set timers using setTimeout or setInterval, or send AJAX requests, perform those operations in this method.

  8. def componentDidMountCB(cb: Callback): ReactComponentB[P, S, B, N]

    Permalink
  9. def componentDidUpdate(f: (ComponentDidUpdate[P, S, B, N]) ⇒ Callback): ReactComponentB[P, S, B, N]

    Permalink

    Invoked immediately after the component's updates are flushed to the DOM.

    Invoked immediately after the component's updates are flushed to the DOM. This method is not called for the initial render.

    Use this as an opportunity to operate on the DOM when the component has been updated.

  10. def componentDidUpdateCB(cb: Callback): ReactComponentB[P, S, B, N]

    Permalink
  11. def componentWillMount(f: (DuringCallbackU[P, S, B]) ⇒ Callback): ReactComponentB[P, S, B, N]

    Permalink

    Invoked once, both on the client and server, immediately before the initial rendering occurs.

    Invoked once, both on the client and server, immediately before the initial rendering occurs. If you call setState within this method, render() will see the updated state and will be executed only once despite the state change.

  12. def componentWillMountCB(cb: Callback): ReactComponentB[P, S, B, N]

    Permalink
  13. def componentWillReceiveProps(f: (ComponentWillReceiveProps[P, S, B, N]) ⇒ Callback): ReactComponentB[P, S, B, N]

    Permalink

    Invoked when a component is receiving new props.

    Invoked when a component is receiving new props. This method is not called for the initial render.

    Use this as an opportunity to react to a prop transition before render() is called by updating the state using this.setState(). The old props can be accessed via this.props. Calling this.setState() within this function will not trigger an additional render.

    Note: There is no analogous method componentWillReceiveState. An incoming prop transition may cause a state change, but the opposite is not true. If you need to perform operations in response to a state change, use componentWillUpdate.

  14. def componentWillReceivePropsCB(cb: Callback): ReactComponentB[P, S, B, N]

    Permalink
  15. def componentWillUnmount(f: (DuringCallbackM[P, S, B, N]) ⇒ Callback): ReactComponentB[P, S, B, N]

    Permalink

    Invoked immediately before a component is unmounted from the DOM.

    Invoked immediately before a component is unmounted from the DOM.

    Perform any necessary cleanup in this method, such as invalidating timers or cleaning up any DOM elements that were created in componentDidMount.

  16. def componentWillUnmountCB(cb: Callback): ReactComponentB[P, S, B, N]

    Permalink
  17. def componentWillUpdate(f: (ComponentWillUpdate[P, S, B, N]) ⇒ Callback): ReactComponentB[P, S, B, N]

    Permalink

    Invoked immediately before rendering when new props or state are being received.

    Invoked immediately before rendering when new props or state are being received. This method is not called for the initial render.

    Use this as an opportunity to perform preparation before an update occurs.

    Note: You *cannot* use this.setState() in this method. If you need to update state in response to a prop change, use componentWillReceiveProps instead.

  18. def componentWillUpdateCB(cb: Callback): ReactComponentB[P, S, B, N]

    Permalink
  19. def configure(fs: (ReactComponentB[P, S, B, N]) ⇒ ReactComponentB[P, S, B, N]*): ReactComponentB[P, S, B, N]

    Permalink
  20. def configureSpec(modify: (ReactComponentSpec[P, S, B, N]) ⇒ Callback): ReactComponentB[P, S, B, N]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getDefaultProps(p: ⇒ P): ReactComponentB[P, S, B, N]

    Permalink
  26. def getDefaultPropsCB(p: CallbackTo[P]): ReactComponentB[P, S, B, N]

    Permalink
  27. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  29. def mixinJS(mixins: Any*): ReactComponentB[P, S, B, N]

    Permalink

    Install a pure-JS React mixin.

    Install a pure-JS React mixin.

    Beware: There will be mixins that won't work correctly as they make assumptions that don't hold for Scala. If a mixin expects to inspect your props or state, forget about it; Scala-land owns that data.

  30. val name: String

    Permalink
  31. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def propsConst(p: ⇒ P): Builder[ConstProps[P, S, B, N]]

    Permalink
  35. def propsDefault(p: ⇒ P): Builder[DefaultProps[P, S, B, N]]

    Permalink
  36. def propsRequired: Builder[ReqProps[P, S, B, N]]

    Permalink
  37. def propsUnit(implicit ev: UnitPropProof[P]): Builder[ConstProps[P, S, B, N]]

    Permalink
  38. def reRender(f: (RenderFn[P, S, B]) ⇒ RenderFn[P, S, B]): ReactComponentB[P, S, B, N]

    Permalink

    Modify the render function.

  39. def shouldComponentUpdate(f: (ShouldComponentUpdate[P, S, B, N]) ⇒ Boolean): ReactComponentB[P, S, B, N]

    Permalink

    Invoked before rendering when new props or state are being received.

    Invoked before rendering when new props or state are being received. This method is not called for the initial render or when forceUpdate is used.

    Use this as an opportunity to return false when you're certain that the transition to the new props and state will not require a component update.

    If shouldComponentUpdate returns false, then render() will be completely skipped until the next state change. In addition, componentWillUpdate and componentDidUpdate will not be called.

    By default, shouldComponentUpdate always returns true to prevent subtle bugs when state is mutated in place, but if you are careful to always treat state as immutable and to read only from props and state in render() then you can override shouldComponentUpdate with an implementation that compares the old props and state to their replacements.

    If performance is a bottleneck, especially with dozens or hundreds of components, use shouldComponentUpdate to speed up your app.

  40. def shouldComponentUpdateCB(f: (ShouldComponentUpdate[P, S, B, N]) ⇒ CallbackB): ReactComponentB[P, S, B, N]

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

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def buildU(implicit ev: =:=[ReactComponentB[P, S, B, N], ReactComponentB[Unit, S, B, N]]): ConstProps[Unit, S, B, N]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) Use .build.

Inherited from AnyRef

Inherited from Any

Ungrouped