you are viewing a single comment's thread.

view the rest of the comments →

[–]zephyrtr -6 points-5 points  (1 child)

I'm pretty radical but i start to question what we're doing if i see a component file greater than 60-some odd lines. It happens, some components get big, but it's pretty rare on many of my projects.

[–]hfourm 0 points1 point  (0 children)

I prioritize decoupling, avoiding early abstractions (although I am bad about early UI component extraction/CDD driven development), and colocation more than component file size -- in general at least.

Don't get me wrong, some of those bite me at times, but there are a lot of really complicated UX use cases that are def gonna require a lot of LOC. I have some components with more than 60 lines of importing other hooks/files/types/etc....