#02 – Data Fetching – Learn Next.js
Next.js provides three functions to fetch data for pre-rendered pages: getStaticProps(): Used for static generation (pre-rendering technique) Fetches data at build-time When an async function getStaticProps() is called from the page component, the next.js will pre-render this page at build…