3 ms·
> So, every component in React has state. In the context of the article, I know the above text is meant to be a simple explanation for newcomers, but in the br
by julenx 12y ago
> So, every component in React has state.
In the context of the article, I know the above text is meant to be a simple explanation for newcomers, but in the broader context it's worth noting that having stateful components is not a requirement. Moreover, the lesser state in a component, the better [1].
[1] http://facebook.github.io/react/docs/interactivity-and-dynamic-uis.html#what-components-should-have-state http://facebook.github.io/react/docs/interactivity-and-dynam...
- jcreamer 12y agoGreat point. Thanks.