# Persist user inputs after form submit in Remix This tutorial will show you how to persist user inputs after form submit in Remix. ## Prerequisites - [Remix](https://remix.run) installed ## Steps 1. Create a new app with `remix new` and select the `app` template 2. Open `app/routes/index.tsx` and replace the content with the following: ```tsx import { Link, Outlet, useLocation } from "react-router-dom"; import { useQuery } from "remix"; import { Meta, Links, Scripts, LiveReload } from "remix"; import { Form, useActionData, useCatch } from "remix"; import { json } from "remix-utils"; export function meta() { return { title: "Remix App", description: "Welcome to Remix!", }; } export function links() { return [ { rel: "stylesheet", href: "app.css" }, { rel: "icon", href: "favicon.ico" }, ]; } export function scripts() { return [{ src: "app.js" }]; } ``` 3. Add a form to the `index.tsx` file: ```tsx export default function Index() { const location = useLocation(); const query = new URLSearchParams(location.search); const name = query.get("name") || ""; return (