October 2019
Intermediate to advanced
426 pages
11h 49m
English
After implementing the other post-related components, we can now implement the most important part of our blog app: the feed of blog posts. For now, the feed is simply going to show a list of blog posts.
Let's start implementing the PostList component now:
import React from 'react'import Post from './Post'
export default function PostList ({ posts = [] }) {
return ( <div> {posts.map((p, i) => <Post {...p} key={'post-' + i} />)} </div>Read now
Unlock full access