Let’s rethink our current module architecture and how we have the partials laid out. The comments have several components and sub-components. Right? It has the following components:
- comments list
- comment which includes the header, author, meta, and comment content
Just like we did for the entry header and footer, it’s best to break out components into their own partial. For the comments, it’s up to you how far you want to break things out. Let’s talk about several strategies and think about different alternatives.
You get WET when you swim. Stay DRY when you code.
Total Lab Runtime: 00:21:29