Next.js Pertanyaan dan Jawaban Wawancara
Question: Explain the purpose of the 'getStaticPaths' function in dynamic routes.Answer: 'getStaticPaths' is used in dynamic routes to specify which paths should be pre-rendered at build time. It returns an array of possible values for the dynamic segments in the route. |
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users: