O'Reilly logo

Mastering React by Ryan Vice, Adam Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required