Search posts, tags, users, and pages
Next.js is now recommending the use of App Router by default together with the use of Server Component. Are you ready to embrace the change?
Hoh Shen Yien
@ShenYien · Kuala Lumpur, Malaysia
I write codes and blogs 🍵
My name is Hoh Shen Yien, I'm a Malaysian fullstack developer who likes to read and write sometimes 🤩
Markdown supported · ⌘↵ to post
Archit Badjatya
Very well explained, I am having a doubt earlier we use to have SSG for dynamic pages too, now how can we have SSG for dynamic pages.
Thanks!
That's actually the neat part, SSR and SSG will now be handled completely by Next.js when you use Server Component!
Just fetch the data in the server component as you did in getStaticProps.
I also referred to this video while writing, you can watch it if you're interested: youtu.be/g0Jc5D6tiCo
Thanks Hoh Shen Yien
Archit Badjatya
Very well explained, I am having a doubt earlier we use to have SSG for dynamic pages too, now how can we have SSG for dynamic pages.