object React
- Alphabetic
- By Inheritance
- React
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[A](fallback: VdomNode, asyncBody: AsyncCallback[A])(implicit ev: (A) ⇒ VdomElement): 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( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
createContext[A](defaultValue: A)(implicit jsRepr: JsRepr[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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
forwardRef: ReactForwardRef.type
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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]]
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
raw: React
- Annotations
- @inline()
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.