EraCode practice
Stabilize context value to prevent wasted re-renders
React.jsintermediateMulti-Part
Summary
Quick performance-focused drill: identify when context updates cause unnecessary renders, then fix a small Provider so its value stays referentially stable across renders unless the data actually changes.
Problem preview
### Goal Prevent unnecessary re-renders of context consumers by making the Provider referentially stable. - re-renders frequently (simulated by a ticking state), but should only re-render when change…
Attempt this challenge
Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.