That's a great observation, Andreas.

It's to turn <input /> into a controlled component, which makes input's state to be controlled by React (one source of truth for state)

code of conduct - report abuse