Put in order · Vibe coding with Claude Code course · Module 7: LinkedIn clone

Sorting: Publishing a post

Arrange publishing a post through the form above the feed:

Items to put in order

  • The pirate types the content and clicks Publish
  • The schema rejects only spaces or lets the content through
  • The new post stands at the top of the feed, and the field is empty
  • Saving the post and revalidatePath("/feed")
  • The createPost action takes the author from getCurrentUser()

You can check the correct answer by solving this task in the CodeWorlds game.