How to Fetch From Nextjs Api and Render in Component ?
Create a Next.js API route (/api/data) that hosts a JSON response.
Create a UI component (DataList) that fetches and renders the data.
Use the UI component in a page (/pages/index.js) to display the data.
https://www.youtube.com/watch?v=ksWpvLIFV...
vpnwan.hashnode.dev1 min read