React JS - Uncontrolled Components

  •  Uncontrolled Components are the components in which Input Fields are managed through Javascript or Ref.

  • Uncontrolled Components communicate directly to the DOM which is NOT preferred.
Example 1 (using JS) :



Example 2 (using Ref) :



Comments