@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 |
Element
The Symbol type for Element.
|
static java.lang.Object |
Fragment
The Symbol type for Fragments.
|
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="Suspense") public static java.lang.Object Suspense
@JsProperty(name="unstable_Profiler") public static java.lang.Object Profiler
@JsProperty(name="Element") public static java.lang.Object Element
@JsProperty(name="Provider") public static java.lang.Object Provider
@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.