Packages

  • package root
    Definition Classes
    root
  • package react

    A scala.js react facaded in the spirit of ReasonReact.

    A scala.js react facaded in the spirit of ReasonReact.

    Definition Classes
    root
  • trait React extends AnyRef

    Scala-side access to JSReact APIs.

    Scala-side access to JSReact APIs. Some of these methods overlay the raw JS version to provide the convenience of using scala types as inputs and saving a few conversion nits.

    Some of the *N() hook functions like useCallback may be quite inefficient in their conversion from scala functions to js functions and back. Perhaps we need another parallel API function set with the js functions being assumed for those code bases that already have the js versions. Note that useCallback returns a js function so it can be used as a dependency.

    Definition Classes
    react
  • Fragment
  • StrictMode
  • Suspense
  • SuspenseList
o

react.React

Suspense

object Suspense

Catch a thrown js.Promise from the child. Show fallback until the promise is resolved.

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

Value Members

  1. def apply(fallback: => ReactNode)(children: ReactNode*): ReactElement