r/reactjs • u/chris_abi • 9d ago
reactques
Would React with selective hydration or a framework like Astro be worth considering here? I'm wondering if using React only for the parts that actually need interactivity, while keeping the rest lightweight, could be a good balance for low-end devices. Curious what more experienced developers think about this approach.
0
Upvotes
View all comments
1
u/Sammytheherald 9d ago
Yeah, that's actually one of the best use cases for Astro. If most of your site is static content with a few interactive pockets like a filterable list, cart, or form, Astro's islands architecture lets you ship zero JavaScript for everything else and only hydrate those specific React components when they load or scroll into view. On low-end phones, skipping unnecessary JS parsing and hydration makes a huge difference in how snappy the page feels.
React's selective hydration with Suspense is still helpful if your whole page is genuinely an interactive app, since it prioritizes hydrating whatever the user is interacting with first. The catch is you're still shipping the React runtime and hydrating the rest of the tree in the background anyway.
The main trade-off comes down to how connected your interactive parts are. If you have a bunch of components sharing global state or you're building something that feels like a full dashboard with client-side navigation, sticking with React or Next.js is way less headache than trying to sync state across separate Astro islands. But for content-heavy sites targeting budget devices, Astro with React islands is hard to beat.