import { withRouter } from 'next/router' const About = ({ router }) =>

About foo {router.query.foo}

export default withRouter(About)