Organizing your code into small, manageable components is a must no matter what you’re building. Having giant files may work for a time, but ultimately, you want to build small, reusable components where it’s easy to understand everything that’s going on. In this episode, I walk through that full process and extract out our Post form, Post card, Comment form, and comment card components.

⏱️ Timestamps:

  • 00:00 - Introduction
  • 00:40 - demo
  • 02:40 - Readme
  • 03:20 - Slug changes
  • 09:13 - index changes
  • 10:30 - Post Form and Post Card components
  • 15:00 - Comment Form and Comment Card components




Creating Reusable Comment and Post Components in Svelte
2.15 GEEK