@zenithcore/core
Version:
Core functionality for ZenithKernel framework
40 lines (35 loc) • 829 B
text/typescript
import {
useState as reactiveUseState,
useRef as reactiveUseRef,
useEffect,
useMemo,
useCallback,
initializeComponent,
withComponent,
getComponentInstance,
cleanupComponent,
bindStateToAttribute,
bindStateToText,
bindStateToClass,
bindStateToStyle,
type ComponentInstance
} from '../../core/reactive-state';import {
Signal,
signal,
computed,
effect,
isSignal,
resolve,
type MaybeSignal
} from '../../core/signals';import {getSignalManager, SignalManager} from '../../core/SignalManager';
/**
* Append children to an element
*/
function appendChildren(element: HTMLElement, children: Children): void {
if (children == null) return;
if (Array.isArray(children)) {
children.forEach(child => appendChild(element, child));
} else {
appendChild(element, children);
}
}