Keep component implementation files under 300 lines and colocated in their component folder
React component implementation files must stay under 300 lines, and the main component entry should live inside its own component folder. If hooks, effects, handlers, JSX, or hard-coded copy make a component grow, split the logic into hooks, child components, and dedicated constants/copy files instead of keeping one large TSX file or a stray sibling component file outside the folder.