by elanning · 5y ago · 0 comments
Push all your callbacks into a separate component.
For example, a checkbox IMHO would be better considered a presentational component even if it manages the small bit of state it needs for it to work. Same with many of the state management that is around "visual" changes.
The point where I normally decide to split it up like you say into sub-components is just when the component becomes too complex.