I
- the type of the native component.public abstract class NativeAdapterComponent<I extends Component> extends NativeComponent
Component
.Modifier | Constructor and Description |
---|---|
protected |
NativeAdapterComponent(jsinterop.base.JsPropertyMap<java.lang.Object> props)
Create a component that designed to delegate to a target component.
|
Modifier and Type | Method and Description |
---|---|
protected I |
component()
Return the non-native component associated with this component.
|
protected abstract I |
createComponent()
Template method that actually creates the target component.
|
ReactNode |
render()
Call render on the target component.
|
forceUpdate, props, setState, state
@JsConstructor protected NativeAdapterComponent(@Nullable jsinterop.base.JsPropertyMap<java.lang.Object> props)
props
- the initial props.protected abstract I createComponent()
protected final I component()
@Nullable public final ReactNode render()
render
in class NativeComponent
Component.performRender()