Yeah I agree, state is something to get a component very lengthy most of time. When I look at a codebase, I normally look for these states and see if i can extract them out into a render prop / Hoc component. A clean code normally would be written via pure functions. If a file contains one main pure function, it’ll be relatively difficult to make it messy later. But who am I to know :)