import { ActionFunction } from "remix";
export const action: ActionFunction = async ({ request }) => {
const formData = await request.formData();
};
Create ActionFunction
Remix TypeScript public recipesThe above code imports the ActionFunction constructor and exports an action function that accepts an empty request object and returns a formData object.
Shortcut: remix.actionfunction.create
0 Comments
Add Comment
Log in to add a comment