News for hackers. Stuff that matters.
Re:SPAs Were a Mistake by sinker on Wednesday March 02, 2022 @03:03PM (#30532244)
Next.js recommends delivering static assets by default and is geared towards that.

> We recommend using Static Generation (with and without data) whenever possible because your page can be built once and served by CDN, which makes it much faster than having a server render the page on every request.

If you need dynamic content, they recommend server-side rendering, and lastly client-side rendering only if the page is unaffected by SEO and requires a lot of in-page updates.

https://nextjs.org/learn/basics/data-fetching/two-forms

There are no comments on this comment yet.