Implement Layout and Index routes in Data mode of routing?
Layout Routes: Omitting the path in a route creates new Nested Routes for its children without adding any segments to the URL.
Index routes are defined by setting index: true on a route object without a path. Index routes render into their parent's Outlet at their parent's URL (like a default child route). Note that index routes can't have children.