Constructor and Description |
---|
ReactElement() |
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete the element.
|
static ReactElement |
createComponentElement(ComponentConstructorFunction type) |
static ReactElement |
createFragment(ReactNode... children) |
static ReactElement |
createHostElement(java.lang.String type,
java.lang.String key,
java.lang.Object ref,
jsinterop.base.JsPropertyMap<java.lang.Object> props) |
static ReactElement |
createRawElement(java.lang.Object type,
java.lang.String key,
java.lang.Object ref,
jsinterop.base.JsPropertyMap<java.lang.Object> props) |
java.lang.String |
key() |
jsinterop.base.JsPropertyMap<java.lang.Object> |
props() |
void |
setKey(java.lang.String key) |
protected void |
setProps(jsinterop.base.JsPropertyMap<java.lang.Object> props) |
@JsOverlay public final void complete()
React.shouldFreezeProps()
returns true this method will freeze the props and the
element, otherwise this method is a no-op. This method should be called before returning the element
to the react runtime.@JsOverlay @Nonnull public static ReactElement createComponentElement(@Nonnull ComponentConstructorFunction type)
@JsOverlay @Nonnull public static ReactElement createRawElement(@Nonnull java.lang.Object type, @Nullable java.lang.String key, @Nullable java.lang.Object ref, @Nonnull jsinterop.base.JsPropertyMap<java.lang.Object> props)
@JsOverlay @Nonnull public static ReactElement createFragment(@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> props)
@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> props()
@JsOverlay protected final void setProps(@Nonnull jsinterop.base.JsPropertyMap<java.lang.Object> props)