What’s the difference between a controlled component and an uncontrolled one in React?

Technology CommunityCategory: ReactWhat’s the difference between a controlled component and an uncontrolled one in React?
VietMX Staff asked 3 years ago
  • A controlled component has its state completely driven by React,
  • Uncontrolled components can maintain their own internal state. E.g., a textarea’s value.