Giphy API and Fetching Data
Fetching data from APIs can be done in several different ways with Next.js.
We'll cover the following...
Introduction
As mentioned in the lesson, types of pre-rendering fetching data can be done in different ways. I want to help you understand which way will be the best for each page and show you examples using the Giphy API, in addition to talking about the pros and cons of each method.
Questions you need to ask yourself
- Does my page require data?
- Will the data change and need to be updated each time the page is loaded?
- Will the data be used