Index.tsx or Route.tsx
I'm struggling to understand the difference between these two.
From the docs on
and the
this sounds like it's doing the same to me
From the docs on
route.tsx:When using directories to organize your routes, the route suffix can be used to create a route file at the directory's path. For example, blog.post.route.tsx or blog/post/route.tsx can be used at the route file for the /blog/post route.
and the
index.tsx description:Routes segments ending with the index token (but before any file types) will be used to match the parent route when the URL pathname matches the parent route exactly.
this sounds like it's doing the same to me