DEV Community

Discussion on: react-use-localstorage

Collapse
 
dance2die profile image
Sung M. Kim • Edited

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)