Architecture - performance
Unanswered
Russian Blue posted this in #help-forum
Russian BlueOP
Currently, I have a _services(functions to retrieve data from db using prisma for example and intended to be used in server components) folder and a _components(reusables) folder inside my app directory next to the root layout, is this okay? Or can it potentially impose routing performance issues if these folders get heavy? Thanks!
3 Replies
I think its OK, I use multiple _components folders.
One in the root dir (next to the app folder); that contains UI / form / list generic components.
And inside app I have more specific components.
This is how I use:
One in the root dir (next to the app folder); that contains UI / form / list generic components.
And inside app I have more specific components.
This is how I use:
I'm fairly new to nextjs/react so I dont know if this is good or not. Let's learn together =]
Russian BlueOP
Thanks for sharing! Yep, I hope someone can hop in and let us know