Help and docs
Sign in

demo/acme-web code browser

checkout-redesign cc062bd
TypeScript · 10 lines · 342 B
1
2
3
4
5
6
7
8
9
10
import type { ReactNode } from "react";
import { CartPage } from "./cart/CartPage";
import { ProductList } from "./catalog/ProductList";
import { Checkout } from "./checkout/Checkout";

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