UNPKG

xatto

Version:

xatto is View Layer Library based on Function and Context using VirtualDOM. This is developed by forking from jorgebucaran/superfine.

14 lines (11 loc) 313 B
import { VNode } from './VNode' import { x } from './x' export function Context ( { slice, fill }: { slice?: string; fill?: any }, children: VNode[] ) { return x(ContextInner, { xa: { slice, fill }, children }) } function ContextInner ({ children }: { children: VNode[] }) { return x(x, {}, children) }