React Server Components Best Practices You Can Use with Hydrogen - Shopify
Feb 4, 2022

Summary
This post details best practices for using React Server Components (RSC) within Hydrogen applications. It advocates for starting with shared components, pivoting to client components only in rare cases for specific interactivity needs (useState, useEffect, browser APIs, unsupported third-party libraries), and pivoting to server components whenever possible, especially for proprietary logic, filesystem/database access, or data fetching. It provides examples for Newsletter Sign-up and Product FAQs, demonstrating how to extract client functionality into separate .client.jsx files and rename components to .server.jsx when appropriate.
More from the Hosting for Custom Storefronts (Oxygen) trail
- Quick: An internal hosting platform for the AI era (2026) - Shopify
- MCP UI: Breaking the text wall with interactive components (2025) - Shopify
- Mixing It Up: Remix Joins Shopify to Push the Web Forward - Shopify
- How We Built Oxygen: Hydrogen’s Counterpart for Hosting Custom Storefronts - Shopify
- How We Built Hydrogen: A React Framework for Building Custom Storefronts - Shopify