import React from 'react'
import {CollectionPage} from '../collection/collection.component'
import './page.shop.scss'
import CollectionOverview from '../../components/collection-overview/component.collection-overview'
import { Route } from 'react-router-dom'
const ShopPage = ({ match }) => (
<div className='shop-page'>
<Route exact path={`${match.path}`} component={CollectionPage} />
</div>
);
export default ShopPage
this works ^
<Route exact path={`${match.path}`} component={CollectionOverview} />
this works as well
<Route exact path={`${match.path}`} component={CollectionOverview} />
<Route path={`${match.path}/:collectionId`} component={CollectionPage} />
this works but when i go to the ${match.path}/:collectionId
it doesn't show anything , can someone point me to
issue with <Route path={'${match.path}/:collectionId'}component={CollectionPage} />
cuz it just won't show anything.