Skip to content

ReactiveComponent

A reactive component is a component that can be refreshed. This is useful for rendering dynamic content.

See API.reactive

Constructors

new ReactiveComponent()

new ReactiveComponent(api, _render, initialArgs): ReactiveComponent

Parameters

Parameter Type

api

API

_render

JsFunc

initialArgs

unknown[]

Returns

ReactiveComponent

Defined in

jsEngine/api/reactive/ReactiveComponent.ts:21

Methods

refresh()

refresh(…args): Promise<void>

Refreshes the component by rerunning the render function with the arguments passed into this function.

Parameters

Parameter Type Description

args

unknown[]

Returns

Promise<void>

Defined in

jsEngine/api/reactive/ReactiveComponent.ts:32