Other affected views

Now that the post list component is prepared, it needs to be added to the user view (profile).

The user view

The post list component is added to the user view to display the user's posts on their profile page. This fleshes out the user view into a more interesting destination. The user view is reached when someone clicks on a user profile in other parts of the app.

Here's what the user view looks like with their posts included:

The user view

The user view (profile page)

Here is the user view source with a list of posts added:

File: js/views/users/view.jsx

import React from 'react'; import UserView from 'appRoot/components/users/view'; import PostList ...

Get React: Building Modern Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.