A name editor shows a text input and a saved name below it. The user can type a new name, blur to save, and click Reset to go back to the default. After editing, the Reset button updates the label but leaves the input field showing the old typed value.
Type "Bob" in the input field, click outside — the saved label shows "Bob". Click Reset — the label correctly reverts to "Alice" but the input field still shows "Bob". The input and the label are out of sync.
defaultValue only sets the input's initial value on mount — it is read once and then ignored. After mount, changing defaultValue has no effect on what the input displays.
defaultValue only sets the input's initial value on mount — it is read once and then ignored. After mount, changing defaultValue has no effect on what the input displays.