14 lines
236 B
JavaScript
14 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>
|
|
)
|