15 lines
236 B
JavaScript
15 lines
236 B
JavaScript
|
import React from 'react'
|
||
|
import Link from 'next/link'
|
||
|
|
||
|
class MyLink extends React.Component {
|
||
|
render () {
|
||
|
return <a {...this.props}>Click me</a>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default () => (
|
||
|
<Link href='/' passHref>
|
||
|
<MyLink />
|
||
|
</Link>
|
||
|
)
|