Search⌘ K

Listing the Comments

Explore how to build a Comment component in React that lists comments on posts, aligning with Django backend functionality. This lesson helps you understand displaying user comments, handling component state, and setting the stage for comment editing and deletion features.

We'll cover the following...

We can create comments, but we can’t see them. In src/components/comments, we’ll create a new file called Comment.jsx. This will contain the code for the Comment component that will be ...