I'm learning nextjs and read in a few places that nextjs only prerenders for the first page(How is server-side rendering compatible with single-page applications?)
But when I use the Link
tag and navigate to another page, and view page source, I see it has the html elements that are built using data from getServerSideProps
, but in network tab there's no request for html file, only a get request that receives json data for the page. So if it prerenders only for the first page / on refresh, how does the view page source have the html elements created using react?