I've been using React since quite a few months and I have been clear about the controlled and uncontrolled nature of components from sources like this
Controlled form inputs
Uncontrolled components
Everything was clear until I stumbled across this post
I used to think of controlled vs uncontrolled as React component controlling the state then controlled, DOM refs handling then uncontrolled ( using refs )
Then article third changes my view in a way that components are controlled if they have single source of truth from any React component ( Parent or the component itself ). Okay, fine! which means React components receiving or seeding values from parent props to map component local state in constructor becomes uncontrolled.
If you look at the diff of two recommendation section of article 3 the only diff I can make b/w controlled uncontrolled is this
state = { email: this.props.defaultEmail }; //uncontrolled
But aren't the two write-ups confusing to reader to give a clear definition of controlled components or is it just me?
I'm not sure now if I really know how to explain uncontrolled components.
Or is this just a loose terminology?