DEV Community

Mayank
Mayank

Posted on

Answer: Fetching related data via an API and rendering it in components via Next.js

Rendering html in API doesn't make much sense. Best way is to include that render information in your API response.

If you have deeply nested components, you should use global state management or context API (useContext and Provider) to make the props available.

But since you are using Next.js, you…

Top comments (0)