Do you typically put route components inline or import external components ?
Hi,
I'm working on an app with tanstack router using a feature-based folder structure and file-based routing and was wondering how people typically achieve a structure like this.
In the vast majority of TR articles/tutorials/etc I see people directly coding their route components (effectively the views/pages) within the route files but for large pages this seems clunky. I guess this could be useful for heavily nested uis but mine so far is fairly straight forward with one page per route (aside from layout routes etc). I assume there's no hard and fast rule here, but I'd be interested in hearing how more experienced TR devs do it.
Thanks
I'm working on an app with tanstack router using a feature-based folder structure and file-based routing and was wondering how people typically achieve a structure like this.
In the vast majority of TR articles/tutorials/etc I see people directly coding their route components (effectively the views/pages) within the route files but for large pages this seems clunky. I guess this could be useful for heavily nested uis but mine so far is fairly straight forward with one page per route (aside from layout routes etc). I assume there's no hard and fast rule here, but I'd be interested in hearing how more experienced TR devs do it.
Thanks