Client-Side Rendering
CSR
This page renders empty on the server, then fetches posts in the browser via useEffect. Refresh the page and you'll briefly see a loading spinner before the fetch time appears - proof the fetch happened on your machine, not the server.
- Server sends an empty page first.
- The browser fetches the data after the page loads.
- You see a loading spinner briefly, then the data appears.
- Refresh the page and the data is fetched again, right in the browser.
Loading posts…