formacao
This commit is contained in:
+1
@@ -4,6 +4,7 @@ import { Fragment, createContext, jsx, useContext } from "../../jsx/index.js";
|
||||
import { renderToReadableStream } from "../../jsx/streaming.js";
|
||||
var RequestContext = createContext(null);
|
||||
var createRenderer = (c, Layout, component, options) => (children, props) => {
|
||||
options = typeof options === "function" ? options(c) : options;
|
||||
const docType = typeof options?.docType === "string" ? options.docType : options?.docType === false ? "" : "<!DOCTYPE html>";
|
||||
const currentLayout = component ? jsx(
|
||||
(props2) => component(props2, c),
|
||||
|
||||
Reference in New Issue
Block a user