Object

japgolly.scalajs.react

React

Related Doc: package react

Permalink

object React

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

Type Members

  1. type Context[A] = feature.Context[A]

    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. val Context: feature.Context.type

    Permalink
  5. val Fragment: ReactFragment.type

    Permalink
  6. def StrictMode(ns: VdomNode*): VdomElement

    Permalink

    StrictMode is a tool for highlighting potential problems in an application.

    StrictMode is a tool for highlighting potential problems in an application. Like Fragment, StrictMode does not render any visible UI. It activates additional checks and warnings for its descendants.

    Strict mode checks are run in development mode only; they do not impact the production build.

    Since

    1.3.0 / React 16.3.0

  7. def Suspense[A](fallback: VdomNode, asyncBody: AsyncCallback[A])(implicit ev: (A) ⇒ VdomElement): VdomElement

    Permalink

    Displays a fallback view until an asynchronous view becomes available.

    Displays a fallback view until an asynchronous view becomes available.

    See https://reactjs.org/docs/code-splitting.html#suspense

    Since

    1.4.0 / React 16.6.0

  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def createContext[A](defaultValue: A)(implicit jsRepr: JsRepr[A]): Context[A]

    Permalink

    Create a new context.

    Create a new context.

    If you'd like to retain type information about the JS type used under-the-hood with React, use React.Context(defaultValue) instead.

    Since

    1.3.0 / React 16.3.0

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def forwardRef: ReactForwardRef.type

    Permalink

    Ref forwarding is an opt-in feature that lets some components take a ref they receive, and pass it further down (in other words, "forward" it) to a child.

    Ref forwarding is an opt-in feature that lets some components take a ref they receive, and pass it further down (in other words, "forward" it) to a child.

    See https://reactjs.org/docs/forwarding-refs.html

    Annotations
    @inline()
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def memo[P, CT[-p, +u] <: CtorType[p, u]](c: ScalaFnComponent[P, CT])(implicit r: Reusability[P], s: Summoner[Box[P], React.memo.CT.ChildrenType]): GenericComponent[P, CT, Unmounted[Box[P], Null]]

    Permalink

    Class components can bail out from rendering when their input props are the same using shouldComponentUpdate.

    Class components can bail out from rendering when their input props are the same using shouldComponentUpdate. Now you can do the same with function components by wrapping them in React.memo.

    Since

    1.4.0 / React 16.6.0

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def raw: React

    Permalink
    Annotations
    @inline()
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def version: String

    Permalink
    Annotations
    @inline()
  26. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def createRef(notAllowed: NotAllowed): Null

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0 / React 16.3.0) Use Ref. For details see https://github.com/japgolly/scalajs-react/blob/master/doc/REFS.md

Inherited from AnyRef

Inherited from Any

Ungrouped