Nuxt/examples/hello-world-jsx/pages/about.vue

16 lines
250 B
Vue
Raw Normal View History

2017-02-17 15:12:20 +00:00
<script>
export default {
2017-02-28 14:17:49 +00:00
asyncData ({ req }) {
2017-02-17 15:12:20 +00:00
return {
name: req ? 'server' : 'client'
}
},
render (h) {
return <div>
<p>Hi from {this.name}</p>
<nuxt-link to="/">Home page</nuxt-link>
</div>
}
}
</script>