5 ms·
Those are just shitty codebases. I maintain a React app that's over 10 years old, almost milion lines of code and we have zero components with 20 props, no issu
by morbicer 2y ago
Those are just shitty codebases. I maintain a React app that's over 10 years old, almost milion lines of code and we have zero components with 20 props, no issues with performance or whatnot.
I am an oponent of over-abstraction but components are very light abstraction and provide just sensible encapsulation and reusability.
- fmnxl 2y agoShow me this amazing site of yours. With that amount of talent maybe you should go over to Next.js and solve their RSC issues.
- azemetre 2y agoI'm really curious too, the only codebase I've seen that was like their description with react treated different pages/routes as one massive separate component. Not exactly utilizing the benefit of JSX but it's a pattern you might blindly fall into if you only came from a templating background.
- morbicer 2y agoI can't, our app is enterprise SaaS built as SPA. Nextjs is imho garbage. The only reason I can imagine it is so popular is that average React devs are indeed very bad with code organization. If I needed server rendering I would go with Astro + interactive islands.
- fmnxl 2y agoI see, you're talking about a fully client-rendered SPA. I guess you can always count on your users running modern PCs, with fast internet and no SEO needs. Things aren't that nice in the outside world lol.