Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xml_renderer/mod.ts>Factory

An npm/browser module for easy matching XML and XPath to React Components and other stuff
Go to Latest
type alias Factory
import { type Factory } from "https://deno.land/x/xml_renderer@5.0.7/mod.ts";

The single function that calls a given Component with Props to get its output.

For example:

const factory = (component, props) => component ? component(props) : null;

Type Parameters

OutputGeneric
PropsGeneric extends { [key: string]: unknown; } | undefined
optional
MetadataGeneric = Component<OutputGeneric, PropsGeneric>
definition: (component: MetadataGeneric | undefined, props: Props<OutputGeneric, PropsGeneric>) => OutputGeneric | null