Controlled Components

Eric Njnaga Dec 21, 2017

A controlled component is a form element whose value or behavior is controlled by React. For example:

  • A form generated by a component whose submission is controlled by React
  • An input text, text-area or select whose value is controlled by React state

In most of these cases, the control of these values is done by handling an event on these form elements.

Source:  React forms