Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/udibo_react_app/server.tsx>RouterDefinition

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Latest
interface RouterDefinition
import { type RouterDefinition } from "https://deno.land/x/udibo_react_app@0.19.0/server.tsx";

A representation of the routers for a routes directory that is used to generate an Oak router. This interface is meant for internal use only.

Type Parameters

optional
AppContext extends Record<string, unknown> = Record<string, unknown>
optional
AppState extends ServerState<AppContext> = ServerState<AppContext>

Properties

name: string
optional
react: boolean
optional
file: { react?: RouteFile; oak?: Router<AppState>; }
optional
main: { react?: RouteFile; oak?: Router<AppState>; }
optional
index: { react?: RouteFile; oak?: Router<AppState>; }
optional
children: Record<string, RouterDefinition<AppContext, AppState>>