feat: support route layouts via _layout.tsx (#1506)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Michael Gearhardt
2023-07-26 11:49:08 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 18857ea052
commit 1ed93cec88
27 changed files with 397 additions and 3 deletions
@@ -0,0 +1,5 @@
import { h } from "preact";
export default function JsLayout({ Component }) {
return h("div", { class: "js-layout" }, h(Component, null));
}
@@ -0,0 +1,5 @@
import { h } from "preact";
export default function JsPage() {
return h("div", { class: "js-page" }, "/files/js");
}