const routes = [
{
path: '/',
component: LogInView
},
{
path: '/store',
component: Dashboard,
children: [
{
path: '/products',
component: ProductsView,
},
]
},
{
path: '/platform',
component: Dashboard,
children: [
{
path: '/products',
component: ProductsView,
},
]
},
{
path: '/platform',
component: Dashboard
} ]
Imagine I am setting to display the Dashboard
component for both /store
and /platform
,
and the ProductView
component for /store/products
and /platform/products
. However, there seems to be a issue as when accessing the urls /store/products
or /platform/products
, it's actually rendering the Dashboard
component.