mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 11:27:13 +00:00
16 lines
245 B
Vue
16 lines
245 B
Vue
|
<script>
|
||
|
export default {
|
||
|
data ({ req }) {
|
||
|
return {
|
||
|
name: req ? 'server' : 'client'
|
||
|
}
|
||
|
},
|
||
|
render (h) {
|
||
|
return <div>
|
||
|
<p>Hi from {this.name}</p>
|
||
|
<nuxt-link to="/">Home page</nuxt-link>
|
||
|
</div>
|
||
|
}
|
||
|
}
|
||
|
</script>
|