feat: add helpers to make Fresh less TypeScripty (#1627)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { defineApp } from "$fresh/server.ts";
|
||||
import { State } from "../other/state.ts";
|
||||
|
||||
export default defineApp<State>((req, ctx) => {
|
||||
ctx.state.something = "foo";
|
||||
return (
|
||||
<div class="app">
|
||||
<ctx.Component />
|
||||
</div>
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user