@zeix/ui-element
Version:
UIElement - a HTML-first library for reactive Web Components
36 lines (18 loc) • 582 B
Markdown
[**@zeix/ui-element**](../README.md)
***
[@zeix/ui-element](../globals.md) / Effect
# Type Alias: Effect()\<P, E\>
> **Effect**\<`P`, `E`\> = (`host`, `element`) => [`Cleanup`](Cleanup.md) \| `void`
Defined in: [src/component.ts:81](https://github.com/zeixcom/ui-element/blob/f80be4b02c5d1c80817271ddf0fad982e43ad03e/src/component.ts#L81)
## Type Parameters
### P
`P` *extends* [`ComponentProps`](ComponentProps.md)
### E
`E` *extends* `Element`
## Parameters
### host
[`Component`](Component.md)\<`P`\>
### element
`E`
## Returns
[`Cleanup`](Cleanup.md) \| `void`