completefrontend

ConceptMedium

When should a Client Component fetch with SWR or React Query, and when should the server fetch the data, or pass a promise to use()?

The answer

Answer it out loud first, the way you would in the interview. Then compare.

Checking your sign-in…