sinuous
Version:
🧬 Small, fast, reactive render engine
19 lines (16 loc) • 397 B
TypeScript
import { Observable } from './observable';
export type ElementChild =
| Node
| Function
| Observable<unknown>
| object
| string
| number
| boolean
| null
| undefined;
type ElementChildren = ElementChild[] | ElementChild;
export interface FunctionComponent {
(props: object, ...children: ElementChildren[]): Node
(...children: ElementChildren[]): Node
}