React.js controlled components

#ReactJS controlled components:

  • Since 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.
  • In HTML, form elements such as ,