Blog


Data fetching in Next.js

Next.js provides various ways to fetch data from an API or any other source. These methods can be used to either generate static pages(SSG) or for server-side rendering(SSR). getStaticProps, getStaticPaths and getServerSideProps are used for data fetching in Next.js. Using these techniques we can create SEO friendly websites with Next.js and pages will load much …