Populate A Next.js Application with Data using Async/Await

Share this video with your friends

Send Tweet

In this lesson, we will populate our application using data from the Google Blogger API to render a series of cards for each blog post. We’ll leverage async … await functions to promote the use of modern, clean-coding patterns and we’ll also see how easy it is to customize Next.js’ webpack configuration by using Webpack to hide BLOGGER_API_URL and API_KEY as environment variables.

Milton Becker Junior
Milton Becker Junior
~ 7 years ago

The json method does not come from JavaScript as mentioned in this video, it comes from the Fetch API - https://developer.mozilla.org/en-US/docs/Web/API/Body/json.