UNPKG

vasille-router

Version:

The framework designed to build bulletproof frontends (router library).

12 lines (11 loc) 332 B
import { Fragment } from "vasille"; export function screen(renderer) { return async function (props, node) { if (!node) { throw new Error("Vasille: Screen context is missing"); } const frag = new Fragment(node.runner); node.create(frag); await renderer(node, props); }; }