1. 22
    Populate Remix Edit Form with Existing Post Data
    1m 38s
⚠️ This lesson is retired and might contain outdated information.

Populate Remix Edit Form with Existing Post Data

Kent C. Dodds
InstructorKent C. Dodds
Share this video with your friends

Social Share Links

Send Tweet
Published 3 years ago
Updated a year ago

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.