Next.js Interview Questions and Answers
Question: What is the difference between 'getServerSideProps' and 'getStaticProps'?Answer: 'getServerSideProps' fetches data on every request, while 'getStaticProps' fetches data at build time. 'getStaticProps' is suitable for static content that does not change often. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: