import { withRouter } from 'next/router' const Link = withRouter(({router, children, href}) => { const handleClick = (e) => { e.preventDefault() router.push(href) } return (
Current path: {router.pathname} {children}
) }) export default () => (
Go Back

This is the about page.

)