Re:Run TypeScript code without worrying about configuration
by nsonha on Sunday July 20, 2025 @11:02PM
(#44631403)
not all code is a React component. And enforcing one component per file is just gonna encourage bloated components (because who likes heaps of tiny files?). I would not cite every front-end convention as an inspiration for sensible engineering.
Arguably that's the most common React organization pattern going a long way back whenever Components are functions you generally have one function per file, plus a bunch of extra types for options/error types.