79502243

Date: 2025-03-11 22:19:26
Score: 1
Natty:
Report link

In NextJS you should fetch data in a server component then pass the data to client component, this is needed to reduce JavaScript on the client and improve performance, this is the whole idea of using NextJS, fetch data on server component and then send it to client component, a component that needs interactivity such as onClick or hooks needs to be a client component

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aasem Shoshari