Nuxt/examples/hello-world-jsx/pages/about.vue
2017-02-28 15:17:49 +01:00

16 lines
250 B
Vue

<script>
export default {
asyncData ({ 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>