React·Advanced·Conceptual·1 min read
How does defaultValue differ from value for an input?
Short interview answer
defaultValue sets only the input's initial value and then lets the DOM own subsequent changes, making the input uncontrolled; value continuously dictates the current value from React state, making the input controlled — using both on one input is a conflicting signal.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.