Next.js Tutorial #16 GetStaticPaths for routing

Опубликовано: 01 Октябрь 2024
на канале: DATAHACKS
71
1

Next.js Tutorial #16 GetStaticPaths

In this we are going to learn about getstaticpaths. If a page has Dynamic Routes and uses getStaticProps, it needs to define a list of paths to be statically generated.When you export a function called getStaticPaths (Static Site Generation) from a page that uses dynamic routes, Next.js will statically pre-render all the paths specified by getStaticPaths.

Time Stamps
0:00 = Introduction
1:17 = getstaticpaths
4:14 = Practical Demo

#nextjs #nextjs13 #nextjstutorial #DATAHACKS #getstaticpaths