Remove render debugging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-08-01 00:03:23 +02:00
parent dce66274be
commit 9f9b390989

View File

@ -1,7 +1,7 @@
/// <reference path="./types/jsx.d.ts" />
import { React, jsx } from "./deps.ts";
import { v4 } from "https://deno.land/std/uuid/mod.ts";
import config from "./config.ts";
class StringReader implements Deno.Reader {
private data: Uint8Array;
@ -29,10 +29,10 @@ export default async function render(
name: string,
data: any
): Promise<Deno.Reader> {
const id = v4.generate();
console.log(config);
const component: {
default: () => JSX.IntrinsicElements | Promise<JSX.IntrinsicElements>;
} = await import(`./views/${name}.tsx?id=${id}.tsx`);
} = await import(`./views/${name}.tsx`);
const res = await (<component.default {...data} />).render();