Remove unused console output

This commit is contained in:
Fabian Stamm 2021-01-11 15:05:03 +01:00
parent 2af5d4f823
commit 79bcef0698
2 changed files with 12 additions and 10 deletions

View File

@ -1,9 +1,14 @@
{
"name": "@denreg-jsx",
"version": "0.1.0",
"description": "Denreg JSX renderer",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],
"deprecated": false,
"files": ["**/*.ts", "**/*.js", "tsconfig.json", "README.md"]
"name": "@denreg-jsx",
"version": "0.1.1",
"description": "Denreg JSX renderer",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],
"deprecated": false,
"files": [
"**/*.ts",
"**/*.js",
"tsconfig.json",
"README.md"
]
}

View File

@ -83,7 +83,6 @@ async function renderHTML(element: Element) {
if (typeof element.component !== "string")
throw new Error("Internal consistency error");
console.log("Element:", element.component);
let props = "";
for (const key in element.props) {
@ -101,7 +100,6 @@ async function renderHTML(element: Element) {
inner = element.props["innerHTML"];
} else {
const children = cleanChildren(element.children);
if (tag == "body") console.log(element.children, children);
inner = (
await Promise.all(children.map((child) => renderSSR(child)))
).join("");
@ -114,7 +112,6 @@ async function renderCustom(element: Element) {
if (typeof element.component === "string")
throw new Error("Internal consistency error");
console.log("Component:", element.component);
const res = await Promise.resolve(
element.component(
{