Write better Vue and Nuxt code.

A highly curated collection of practical tips, advanced patterns, and performance tweaks for Vue & Nuxt.

useTip.ts
const { tip } = useAsyncData(
  'awesome-trick',
  () => queryContent().findOne()
)

Popular Topics
vue
nuxt
vite

In Vue, when you're using scoped styles but want just one rule to apply globally, you can use the `:global` pseudo-class instead of creating another <style>.

<style scoped>
:global(.red) {
  color: red;
}
</style>