This allows users to control the `preact` version independently of fresh itself.
12 lines
276 B
TypeScript
12 lines
276 B
TypeScript
/** @jsx h */
|
|
import { h } from "preact";
|
|
import { PageProps, RouteConfig } from "$fresh/runtime.ts";
|
|
|
|
export default function Page(props: PageProps) {
|
|
return <div>Book {props.params.id}</div>;
|
|
}
|
|
|
|
export const config: RouteConfig = {
|
|
routeOverride: "/books/:id(\\d+)",
|
|
};
|