小编Gre*_*ley的帖子

Creating Dynamic Routes using 'getStaticPaths' and 'getStaticProps' in NextJS

I am trying to create dynamic pages that show individual book details (.i.e. title/author) on a separate page based on a query string of the "id" for each book. In a previous question I asked, answers from users were very helpful and I have a much better understanding of how to use getStaticPaths and getStaticProps correctly. However, I am not quite there in my code for how to do this.

Here is the basic setup and context.

  1. I am running …

mongodb reactjs next.js

5
推荐指数
1
解决办法
5459
查看次数

标签 统计

mongodb ×1

next.js ×1

reactjs ×1