mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
16 lines
389 B
TypeScript
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);
|
|
}
|