@zeix/ui-element
Version:
UIElement - a HTML-first library for reactive Web Components
36 lines (18 loc) • 590 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/core/reactive.ts:15](https://github.com/zeixcom/ui-element/blob/1e5ebee179adfc4619d3d0e9d2b864d1e97ba797/src/core/reactive.ts#L15)
## 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`