React · Senior · Question 7 of 75
What is selective hydration in React 18+?
- ✓Correct answer: Hydrating by Suspense boundaries, prioritizing the one the user clicked
- 2Hydrating only components that have a
hydrateattribute - 3Disabling hydration for all components without event handlers
Explanation
Each <Suspense> boundary hydrates independently without waiting for all the code. If the user clicks a part that isn't hydrated yet, React raises its priority and replays the event after hydration. Together with streaming, this reduces time to interactivity.