object React
- Alphabetic
- By Inheritance
- React
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Context[A] = feature.Context[A]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Context: feature.Context.type
- val Fragment: ReactFragment.type
- val Profiler: feature.Profiler.type
- def StrictMode(ns: VdomNode*): VdomElement
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
- def Suspense[F[_], A](fallback: VdomNode, asyncBody: => F[A])(implicit ev: (A) => VdomElement, F: Async[F]): VdomElement
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createContext[A](displayName: String, defaultValue: A): Context[A]
Create a new context with a displayName.
Create a new context with a displayName.
If you'd like to retain type information about the JS type used under-the-hood with React, use
React.Context(displayName, defaultValue)
instead.- Since
2.0.0 / React 17.0.0
- def createContext[A](defaultValue: A): Context[A]
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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def forwardRef: ReactForwardRef
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()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val majorVersion: Int
- def memo[P, CT[-p, +u] <: CtorType[p, u]](c: internal.CoreGeneral.ScalaFnComponent[P, CT])(implicit r: Reusability[P], s: Summoner[Box[P], React.memo.CT.ChildrenType]): internal.CoreGeneral.GenericComponent[P, CT, Unmounted[Box[P], Null]]
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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def raw: React
- Annotations
- @inline()
- def startTransition[F[_]](callback: => F[Unit])(implicit F: Sync[F]): F[Unit]
Similar to
useTransition
but allows uses where hooks are not available.Similar to
useTransition
but allows uses where hooks are not available.- callback
A _synchronous_ function which causes state updates that can be deferred.
- Since
2.2.0 / React 18.0.0
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def version: String
- Annotations
- @inline()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()