Recognizing When Controlled is Still Better
What you'll learn: When uncontrolled components seem convenient, but controlled inputs remain the superior choice for your use case.
The Decision Point
You've just learned about uncontrolled components and their use cases—simpler code, fewer re-renders, better for large forms. But here's the reality check: most modern React forms still benefit from controlled inputs, even with their re-render cost.
When Controlled Wins Despite the Cost
If your form needs any of these features, controlled components are the better path:
- Live validation feedback (showing errors as users type)
- Character counters or length restrictions displayed in real-time
- Conditional UI changes based on input values (show/hide fields, enable/disable buttons)
- Auto-formatting while typing (phone numbers, credit cards, currency)
- Multi-step forms where earlier answers affect later questions
- Dynamic field arrays (add/remove items from a list)
- Synchronized inputs (two fields that must stay in sync)
The Modern Reality
Think of uncontrolled components like a vending machine—you put money in, press a button, and get something out. No ongoing communication. Controlled components are like a conversation—continuous feedback and interaction.
In modern UX, users expect that conversation. They want immediate feedback, intelligent forms that guide them, and interfaces that respond to their actions. The re-render cost (which is often negligible) is usually worth the flexibility and user experience gains.
The Rule of Thumb
Start with controlled components by default. Only reach for uncontrolled components when you genuinely have a simple, submit-only form or performance profiling proves it's necessary.
Key Takeaway: Despite the re-render cost, controlled components remain the go-to choice for forms with validation, dynamic behavior, or modern UX requirements—their flexibility usually outweighs performance concerns.