import * as React from 'react' import { withRouter } from 'next/router' class PageA extends React.Component { goToB () { this.props.router.push('/b') } render () { return (