Skip to main content
Module

x/alosaur/examples/react/app.ts

Alosaur - Deno web framework with many decorators
Go to Latest
File
import { App } from "alosaur/mod.ts";import { HomeArea } from "./areas/home.area.ts";import { CoreArea } from "./areas/core.area.ts";import { getPage } from "./views/app.tsx";
const app = new App({ areas: [HomeArea, CoreArea], logging: false,});
app.useViewRender({ type: "react", basePath: `${Deno.cwd()}/examples/react/views/`, getBody: async (path: string, model: Object, config: any) => await getPage(path, model),});
app.listen();