Help and docs
Sign in

demo/acme-web code browser

main 72fe66b
TypeScript · 8 lines · 259 B
1
2
3
4
5
6
7
8
import type { ReactNode } from "react";
import { CartPage } from "./cart/CartPage";
import { ProductList } from "./catalog/ProductList";

export const routes: Record<string, () => ReactNode> = {
  "/": () => <ProductList />,
  "/cart": () => <CartPage />,
};