How to think in Next.js - Learn the Mental Model
The most important thing when learning a new framework, especially ones which have a new way of doing things is to understand how to think (or design) solutions to a problem. Next.js claims the major issue it fixes on top of React.js is “Pre Rendering” What is Pre Rendering Historically frameworks like JSP used to render the HTML content of the page on the server-side and send the rendered HTML page to the browser. This is in contrast to the approach used in modern frameworks like React.js where the web page first loads the JS and then it renders all the required HTML elements on the client (read it as the browser) side ...