You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I am not expert yet in the React, but I will, anyway, kickoff the discussion.
Since state increases complexity and reduces predictability, a Component without state is preferable. Even though you clearly can't do without state in an interactive app, you should avoid having too many Stateful Components.
But of course, we cannot create applications without states, so they must live somewhere.
I think a good way to identify a component that should have a state is when it is the only one listening to an event.
No description provided.
The text was updated successfully, but these errors were encountered: