View on GitHub

reading-notes

My Reading Notes for Code Fellows Class

Readings: React and Forms

React Docs - Forms

controlled components the way to do forms in REACT

,

mutable state is typically kept in the state property of components, and only updated with setState()

combine the two by making the React state be the “single source of truth”

the value attribute is set on our form element, the displayed value will always be this.state.value, making the React state the source of truth

is an uncontrolled component in React