import { FunctionalComponent, h as render } from 'preact'; export function createExample(Component: FunctionalComponent, props: Partial) { const r = (args: any) => render(Component, args) r.args = props return r }