Files
bun.sh/bench/scanner/remix-route.ts
2024-09-03 21:32:52 -07:00

16 lines
389 B
TypeScript

import type { ActionFunction, LoaderFunction } from "remix";
import { useParams } from "remix";
export const loader: LoaderFunction = async ({ params }) => {
console.log(params.postId);
};
export const action: ActionFunction = async ({ params }) => {
console.log(params.postId);
};
export default function PostRoute() {
const params = useParams();
console.log(params.postId);
}