Early Days: PHP Templates
In the late 1990s PHP dominated server‑generated HTML. Embedded templates mixed data and markup, delivering a fully rendered page on each request.
Rise of SPA and Client‑Side Rendering
Frameworks like Angular and React shifted focus to client‑side UI. JavaScript fetched data after the initial load, reducing server work but increasing bundle size and initial latency.
The Return: React Server Components (RSC)
React Server Components bring server logic back into the component model. Data fetching and heavy computation happen on the server, while the result streams to the client as part of the virtual tree.
Why the Shift Back?
- Faster Time‑to‑Interactive (TTI)
- Smaller JavaScript payloads
- Better SEO with pre‑rendered content
- Centralized security for data access
Practical Example: Migrating a Blog
1. Extract static PHP templates into React components.
2. Move database queries into Server Components.
3. Combine Server and Client components for live updates without full page reloads.
Conclusion
The journey from PHP to RSC shows that server‑side rendering remains essential for performance and user experience, while still leveraging modern React capabilities.







