Constructor and Description |
---|
ReactElement() |
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete the element.
|
static ReactElement |
createFragment(java.lang.String key,
ReactNode... children) |
static ReactElement |
createHostElement(java.lang.String type,
java.lang.String key,
java.lang.Object ref,
jsinterop.base.JsPropertyMap<java.lang.Object> inputs) |
static ReactNode |
createStrictMode(ReactNode... children)
Create a StrictMode component with the specified children.
|
static ReactElement |
createSuspense(java.lang.String key,
ReactNode fallback,
int maxTimeToFallback,
ReactNode... children) |
static ReactElement |
createViewElement(ViewConstructorFunction type) |
ReactElement |
dup() |
ReactElement |
input(java.lang.String key,
java.lang.Object value) |
jsinterop.base.JsPropertyMap<java.lang.Object> |
inputs() |
java.lang.String |
key() |
protected void |
setInputs(jsinterop.base.JsPropertyMap<java.lang.Object> inputs) |
void |
setKey(java.lang.String key) |
@JsOverlay public final void complete()
React.shouldFreezeInputs()
returns true this method will freeze the inputs and the
element, otherwise this method is a no-op. This method should be called before returning the element
to the react runtime.@JsOverlay public final ReactElement dup()
@JsOverlay @Nonnull public static ReactElement createViewElement(@Nonnull ViewConstructorFunction type)
@JsOverlay @Nonnull public static ReactElement createFragment(@Nullable java.lang.String key, @Nonnull ReactNode... children)
@JsOverlay @Nonnull public static ReactNode createStrictMode(@Nonnull ReactNode... children)
children
- the child nodes.@JsOverlay @Nonnull public static ReactElement createSuspense(@Nullable java.lang.String key, @Nullable ReactNode fallback, int maxTimeToFallback, @Nonnull ReactNode... children)
@JsOverlay @Nonnull public static ReactElement createHostElement(@Nonnull java.lang.String type, @Nullable java.lang.String key, @Nullable java.lang.Object ref, @Nonnull jsinterop.base.JsPropertyMap<java.lang.Object> inputs)
@JsOverlay @Nullable public final java.lang.String key()
@JsOverlay public final void setKey(@Nullable java.lang.String key)
@JsOverlay @Nonnull public final jsinterop.base.JsPropertyMap<java.lang.Object> inputs()
@JsOverlay @Nonnull public final ReactElement input(@Nonnull java.lang.String key, java.lang.Object value)
@JsOverlay protected final void setInputs(@Nonnull jsinterop.base.JsPropertyMap<java.lang.Object> inputs)