can we call getStaticProps function under components folder which is not under pages folder in Nextjs?

后端 未结 0 1998
梦谈多话
梦谈多话 2021-02-10 04:40

Props drilling is an headache so i want to call getstaticprops function as close as the component need but in documentations data fetch functions must be called from page files.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题