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

16 lines
248 B
Vue
Raw Normal View History

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