
@formerie/react-router
Formerie for React Router
Keep your React Router code. Formerie validates, stores, and delivers each submission.
Works with 
Install
These packages are in alpha, so their APIs may change.
pnpm
pnpm add @formerie/react-routernpm
npm install @formerie/react-routerYarn
yarn add @formerie/react-routerBun
bun add @formerie/react-routerUse it
createFormerieReactRouterAction is a route action that works without JavaScript, and the package has FormerieForm and loadFormerie too.
You’ll need a published form. Replace fm_t77txbvg43nmar with your form's ID from the app.
import { FormerieForm, loadFormerie } from "@formerie/react-router";
import type { Route } from "./+types/contact";
export const loader = () => loadFormerie({ form: "fm_t77txbvg43nmar" });
export default function Contact({ loaderData }: Route.ComponentProps) {
return <FormerieForm {...loaderData} />;
}What happens next
Formerie checks the fields, runs its spam checks, saves the submission, and delivers it the way you set it up in the app. Your code only handles the fields and the response.
Read the framework guideThe packages are in alpha, so their APIs may change.
Publish your first form today.
In early access. New workspaces start on the Free plan, and listed prices aren’t charged.