🚀 Smart Render: A friendlier way to improve React’s performance & reduce bundle size (tree sharking built in) 🎯 #32360
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: Affects all versions, but particularly relevant for React 19+.
Steps To Reproduce
Code example:
👉 Problem: Every time count updates, the entire Counter component re-renders, even though only
<p>{count}</p>
needs to change.The current behavior
The expected behavior
🚀 Only
<p>{count}</p>
updates, instead of re-rendering the whole component.📦 No need for memo, useMemo, or useCallback, making React simpler to use.
⚡ Improved performance and smaller bundle size without extra manual optimizations.
✅ Use a single useState or useRef to keep things simple but effective.
Would love to hear thoughts from the React team and the community! 🚀🔥
The text was updated successfully, but these errors were encountered: