Skip to content

BaseComponent.then method

BaseComponent › then

Official

Facilitates chaining.

Signature:

then(cb: (component: this) => unknown): this

Parameters:

Parameter Type Description
cb (component: this) => unknown The callback to execute.

Returns: thisThe component instance.

Since: 0.9.7

Example:

component.then((x) => {
console.log(x);
});