Next.js Discord

Discord Forum

Where do you store your components?

Unanswered
Semipalmated Plover posted this in #help-forum
Open in Discord
Semipalmated PloverOP
Say you build some nice frontend components that you want to reuse. Is there a place to store a collection of components and be able to see them, for selection in the future?

5 Replies

https://i.stack.imgur.com/qgDVo.png

Some keep the components inside the app but I keep them outside to tell other engineers that app directory includes only page components. If you have similar routes that have shared layouts you can use () syntax inside app directory. For example
for my personal collection of components
to use on multiple apps