⚠️ This lesson is retired and might contain outdated information.

Populate Remix Edit Form with Existing Post Data

Kent C. Dodds
InstructorKent C. Dodds

Social Share Links

Tweet

Now that we have our data from our posts, we need to populate out our form with it in order to be able to properly edit the data.

By using our getPost utility to get our posts and send that along to our json. We use useLoaderData to get our data and use that to set the key on our Form.