'How Next.Js application does not reload even though they are Pre-rendered?
I have been working with React and Next.Js in my career. Recently one of my juniors asked me if traditional websites used to reload because they used to fetch all the HTML, and CSS files from the server; Then how Next.js application does not reload even though they are also pre-rendered? As far as I know in Next.Js the HTML page is also generated on the server and the server sends the pre-rendered 'HTML FILE' to the browser. It does not just fetch the JSON data. It fetches a full HTML page!!
I could not give any answer to him and I am also curious that how actually this thing happens? It would be great if you guys can help me to clarify my doubt.
Cheers. Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
