DEV Community

Discussion on: How I structure my React /TS applications

Collapse
 
krlyric profile image
Katherine

Very cool -- components vs views breakdown is interesting. is it always a 1:1 view and component directory (ie: "home" exists in both) or how do those two directory structures scale over time?

Collapse
 
djamaile profile image
Djamaile

Good question! No, not all the components folders are 1:1 to the views folder. For example, a couple of months ago I was working with graphs. These graph components were not necessarily tied to a folder within views. So, I just made a graph folder within components and different views shared the graph components.