I realized Lifting State Up doesn't make sense (in some cases)

Опубликовано: 14 Май 2026
на канале: UI Engineering
2,671
165

In React.js it's a common practice to "Lift State Up". But there are cases when it can hurt your app.

⚛️ This Week in React:
https://thisweekinreact.com/

⏱️ Timestamps:
00:00 - Disclaimer
00:13 - The Flaws
00:24 - Rethinking Best Practices
00:36 - The Example
01:10 - Re-render's Hell
01:57 - The Key Observation
02:18 - The Pattern
03:24 - The Benefits
04:42 - The Counter-Argument
05:59 - React Docs Misconception
06:47 - GitHub discussion
07:42 - When Lifting State Up is OK
08:01 - When it's NOT
08:16 - The Semi-Controlled Components

📖 Acknowledgments & Further Reading:
Rethinking Best Practices (JSConf.Asia 2013):    • Pete Hunt: React - Rethinking Best Practic...  
GitHub discussion: https://github.com/facebook/react/iss...
Dan's post: https://overreacted.io/before-you-memo/
React Docs: https://react.dev/reference/react/use...
How useImperativeHandle works: https://jser.dev/react/2021/12/25/how...