The approach demonstrated in this post to manage form data is known as controlled components, which is traditional "reactish" way to handle input value changes. Since the post is intended for beginners, maybe you could complement it adding a note to mention this for those who'd like to read further on the subject. 🙂
More details can be found here: reactjs.org/docs/uncontrolled-comp...
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.