import { useRouter } from 'next/router'; const MarketPage = () => { const router = useRouter(); return (

Market: {router.query.marketId}

); }; export default MarketPage;