2019-08-08 20:11:17 +02:00
|
|
|
import React from 'react'
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
class MyLink extends React.Component {
|
2019-11-11 04:24:53 +01:00
|
|
|
render() {
|
2019-08-08 20:11:17 +02:00
|
|
|
return <a {...this.props}>Click me</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default () => (
|
2019-11-11 04:24:53 +01:00
|
|
|
<Link href="/" passHref>
|
2019-08-08 20:11:17 +02:00
|
|
|
<MyLink />
|
|
|
|
</Link>
|
|
|
|
)
|