Search posts, tags, users, and pages
Archit Badjatya
Full Stack Web and Mobile Developer
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.
Hoh Shen Yien
I write codes and blogs 🍵
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