A shared handler can read event.target.name and event.target.value, then update the matching property in form state.