deno.land / x / solid@v1.5.6 / web / server / index.ts
123456789101112131415161718192021222324252627282930313233343536373839404142import { ssrElement } from "./server.js";import { splitProps, Component, JSX } from "solid-js";
export * from "./server";
export { For, Show, Suspense, SuspenseList, Switch, Match, Index, ErrorBoundary, mergeProps} from "solid-js";
export const isServer = true;
export function insert() {}export function spread() {}export function delegateEvents(): void {}
export function Dynamic<T>( props: T & { children?: any; component?: Component<T> | string | keyof JSX.IntrinsicElements }) { const [p, others] = splitProps(props, ["component"]); const comp = p.component, t = typeof comp;
if (comp) { if (t === "function") return (comp as Function)(others); else if (t === "string") { return ssrElement(comp as string, others, undefined, true); } }}
export function Portal(props: { mount?: Node; useShadow?: boolean; children: JSX.Element }) { return "";}
Version Info