Creating a UI

Follow step-by-step instructions to create a SinglePost component for displaying post details and comments.

In this lesson, we’ll modify the Post component for consistency when displaying a single post, add a “Back” button on the layout so the user can go back to the home page, and finally, add CRUD features, which will be somewhat similar to the Post components. Before listing the comments, we need to ensure that the user can create comments. This will require building a page called SinglePost that will show details about a post and the comments.

Let’s look at the UI of the page in the following figure:

Get hands-on with 1200+ tech skills courses.