Sébastien Chopin
Co-creator and CTO of Nuxt.js, the Intuitive Vue Framework.
// nuxt.config.js
export default {
target: 'static'
}
nuxt generate
Skip webpack build step when no code has been changed
3.6x times faster re-deploy 🚀
August 2020
Global
Discover websites made with Vue.js
7 days after launching
vuetelemetry.com
Internal changes
The entry point of your Nuxt app
<template>
<h1>Hello Nuxt 3</h1>
</template>
A powerful routing system based on Vue Router 4
How to fetch data with Nuxt 3
import { useFetch } from '@nuxt/composables'
export default {
async setup() {
// Make an API call
const { data: mountains } = await useFetch('https://api.nuxtjs.dev/mountains')
return { mountains }
}
}
// Signature
useFetch(request, options)
// Watch a param
useFetch(() => `https://api.nuxtjs.dev/mountains/${props.slug}`)
// Use a custom fetcher
useFetch(() => $prismic.api.getByUID('page', params.uid))
// Don't block client-side navigation
useFetch('https://api.nuxtjs.dev/mountains', { defer: true })
// Fetch only on client
useFetch('https://api.nuxtjs.dev/mountains', { server: false })
What are the other changes
11K members
discord.nuxtjs.org
43K followers
twitter.nuxtjs.org
10K contributors
github.nuxtjs.org
392 donators
oc.nuxtjs.org
By Sébastien Chopin
Sébastien Chopin, creator of Nuxt.js will explain the current state of Nuxt for 2020, from version 2 to 3.