@JsType(isNative=true,
namespace="<global>",
name="React")
public final class React
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
ConcurrentMode
The Symbol type for ConcurrentMode.
|
static java.lang.Object |
Consumer
The Symbol type for Consumer.
|
static java.lang.Object |
Element
The Symbol type for Element.
|
static java.lang.Object |
ForwardRef
The Symbol type for ForwardRef.
|
static java.lang.Object |
Fragment
The Symbol type for Fragments.
|
static java.lang.Object |
Lazy
The Symbol type for Lazy.
|
static java.lang.Object |
Memo
The Symbol type for Memo.
|
static java.lang.Object |
Portal
The Symbol type for Portal.
|
static java.lang.Object |
Profiler
The Symbol type for Profiler.
|
static java.lang.Object |
Provider
The Symbol type for Provider.
|
static java.lang.Object |
StrictMode
The Symbol type for StrictMode.
|
static java.lang.Object |
Suspense
The Symbol type for Suspense.
|
Modifier and Type | Method and Description |
---|---|
static <T> Context<T> |
createContext(T defaultValue)
Creates a context with specified default value.
|
static boolean |
enableComponentNames()
Return true if components should have human readable names specified.
|
static boolean |
shouldCheckInvariants()
Return true if invariants will be checked.
|
static boolean |
shouldFreezeProps()
Return true if props should be frozen before being passed to react.
|
static boolean |
shouldMinimizePropKeys()
Return true if the prop keys should be minimized.
|
static boolean |
shouldStoreDebugDataAsState()
Return true if react state should be used to store debug data.
|
static boolean |
shouldValidatePropValues()
Return true if the prop value should be validated when initially set or when changed.
|
@JsProperty(name="Fragment") public static java.lang.Object Fragment
@JsProperty(name="StrictMode") public static java.lang.Object StrictMode
@JsProperty(name="unstable_ConcurrentMode") public static java.lang.Object ConcurrentMode
@JsProperty(name="Suspense") public static java.lang.Object Suspense
@JsProperty(name="unstable_Profiler") public static java.lang.Object Profiler
@JsProperty(name="Portal") public static java.lang.Object Portal
@JsProperty(name="Element") public static java.lang.Object Element
@JsProperty(name="Provider") public static java.lang.Object Provider
@JsProperty(name="Consumer") public static java.lang.Object Consumer
@JsProperty(name="ForwardRef") public static java.lang.Object ForwardRef
@JsProperty(name="Memo") public static java.lang.Object Memo
@JsProperty(name="Lazy") public static java.lang.Object Lazy
@JsOverlay public static boolean enableComponentNames()
@JsOverlay public static boolean shouldMinimizePropKeys()
@JsOverlay public static boolean shouldValidatePropValues()
@JsOverlay public static boolean shouldStoreDebugDataAsState()
@JsOverlay public static boolean shouldCheckInvariants()
@JsOverlay public static boolean shouldFreezeProps()
@Nonnull public static <T> Context<T> createContext(T defaultValue)
T
- the type of the context.defaultValue
- the default value.