feat: add @fresh/examples package (#2555)
This can be used to showcase remote islands, combining apps and other things.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { App } from "fresh";
|
||||
import { Doc } from "./shared.tsx";
|
||||
|
||||
export const app1 = new App()
|
||||
.get("/", (ctx) =>
|
||||
ctx.render(
|
||||
<Doc>
|
||||
<h1>App1</h1>
|
||||
<p>This app is loaded from JSR</p>
|
||||
</Doc>,
|
||||
));
|
||||
Reference in New Issue
Block a user