Where do you put components used in multiple routes? #9894
Unanswered
ondrejsevcik
asked this question in
Q&A
Replies: 2 comments 4 replies
-
i created components folder under every routes. and put into main business logic. |
Beta Was this translation helpful? Give feedback.
2 replies
-
IF it's used in multiple routes I put it in If it's used in only one route I put in If it's used in only two routes, I duplicate it on each route components folder If you don't want to duplicate it, then I would move it to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm curious to hear where you put components that are used in multiple routes, especially in the context of large projects.
For some components (e.g., Button), it's easy to put them into the app/components folder.
But where do you put components that are used only by a handful of routes?
(e.g., a component that's used in 2 routes out of hundreds)
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions