Next.js Discord

Discord Forum

Right place to put Components used only in root route

Answered
English Lop posted this in #help-forum
Open in Discord
English LopOP
Do these go in app/ directly?
Answered by Asiatic Lion
you can if you want, its mainly just a preference
View full answer

10 Replies

Asiatic Lion
you can if you want, its mainly just a preference
Answer
Asiatic Lion
what I do is if I only use a component in one place, I put in the same route, but if im using it in multiple places I put it in a components folder
@English Lop got it, is the components folder under src/? or app?
Asiatic Lion
it doesn’t have to be in any
i make a new folder in root
i don’t put it in app
English LopOP
o
Asiatic Lion
but you can if you want
English LopOP
icic
thanks