Task: Update a post

Task: Update a post

  • Create a page for updating a post

  • Add a route that leads to this page with the path: "/:id/edit"

  • Make that page accessible by a button in the detail-view

  • Make sure the input-fields are prefilled with the data they currently contain, rather than empty fields

  • Apply the same validations as used in the "Create a post"-task

  • Disable the input-fields when posting to the server

  • Disable the submit-button when posting to the server

  • Show a loading spinner when posting to the server

  • Add a button that allows you to cancel (go back to the previous page)

  • Ask another trainee for a review

  • Process any feedback you get (only if you agree with the feedback)

  • Finished? Ask me for a review

Are you stuck? Feel free to ask me anything. I am here to help

Last updated

Was this helpful?