My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Can you explain the distinction, the pros and cons; in a simple to understand way, for Controlled Components vs. Uncontrolled Components?

Lisa Haydon's photo
Lisa Haydon
·Nov 14, 2016

I’m looking to gather a set of guidelines one should keep in mind while building my React components; what are the times when I should be making it a controlled component, and why?

To ask a question further; how should I be managing controlled components, when using something like Redux; would component level state be considered a bad practice?