Nuxt/examples/jsx/pages/index.js

21 lines
463 B
JavaScript
Raw Normal View History

2017-12-08 14:58:05 +00:00
export default {
head: {
title: 'Home page 🚀',
meta: [
{ hid: 'description', name: 'description', content: 'Home page description' }
],
script: [
{ src: '/head.js' },
// Supported since 1.0
{ src: '/body.js', body: true },
{ src: '/defer.js', defer: '' }
]
},
render () {
2017-12-08 14:58:05 +00:00
return <div class='container'>
<h1>Home page 🚀</h1>
<NuxtLink to='/about'>About page</NuxtLink>
2017-12-08 14:58:05 +00:00
</div>
}
}