Skip to main content
Module

x/udibo_react_app/server.tsx>generateRouter

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.
Go to Latest
function generateRouter
import { generateRouter } from "https://deno.land/x/udibo_react_app@0.18.0/server.tsx";

Generates an Oak router for a routes directory. The router returned by this function is the default export from the _main.ts file in the routes directory. This function is meant for internal use only.

Type Parameters

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

Parameters

optional
relativePath: string
optional
parentBoundary: string