mount function presentation
Last updated: 2026-03-04T23:21:38.414Z
Metrics
LOC: 18
Complexity: 2
Params: 1
Signature
mount(
props: Partial<(typeof SearchableSelectPreact)["prototype"]> & {
entries?: SelectEntry[];
} = {},
)
Source Code
function mount(
props: Partial<(typeof SearchableSelectPreact)["prototype"]> & {
entries?: SelectEntry[];
} = {},
) {
const container = document.createElement("div");
document.body.appendChild(container);
render(
h(SearchableSelectPreact, {
entries: props.entries ?? GROUPED,
value: props["value"] as string | undefined,
onChange: props["onChange"] as any,
placeholder: props["placeholder"],
} as any),
container,
);
return container;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| render | uses |
| SelectEntry | uses |
| mount | calls |
No incoming dependencies.