feat: support route layouts via _layout.tsx (#1506)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
18857ea052
commit
1ed93cec88
@@ -0,0 +1,9 @@
|
||||
import { h } from "preact";
|
||||
|
||||
export default function JsxLayout({ Component }) {
|
||||
return (
|
||||
<div class="jsx-layout">
|
||||
<Component />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function JsxPage() {
|
||||
return <div class="jsx-page">/files/jsx page</div>;
|
||||
}
|
||||
Reference in New Issue
Block a user