Lesson
Create a BlogList component in Next.js
We'll start by creating a new folder and file `components/BlogList.js`. This component will be what we use to get data from Strapi as well as the current date to display on our home page. We will have it display the slug, title, author, and published date with a link to each of the posts. We will also do some styling which will be quickly glossed over as the focus of the lesson is more on the data and not the styling but you can access the styles in the github link below. Lastly, we'll import our component `BlogList` to our main `index.js` file and render it on the page.
- Duration
- 9 min
- Access
- Included
- Transcript
- Needs source