import Router from 'next/router' export default () => (
Home About Error
) // typically you want to use `next/link` for this usecase // but this example shows how you can also access the router // and use it manually const Link = ({ children, href }) => ( { e.preventDefault() Router.push(href) }} > { children } ) const styles = { a: { marginRight: 10 } }