search

Home  >  Q&A  >  body text

Vue.js vs. Nuxt.js: Discover what you have in common when coding

I am new to coding and currently learning Nuxtjs, I have been watching some tutorials about Nuxtjs and some functions are really hard to understand. I just want to ask, are there any similarities between Vuejs and Nuxtjs when it comes to coding? If not, can I use VueJS's coding structure within the NuxtJs framework?

P粉143640496P粉143640496517 days ago520

reply all(2)I'll reply

  • P粉421119778

    P粉4211197782023-09-08 00:26:29

    Nuxt (a framework for Vue) is a framework that works with VueJS (a framework for JavaScript) within the boundaries of good standards. It also has a lot of good practices built in and provides structure to your files while having many advantages.

    In short: VueJS is a framework for JavaScript and NuxtJs is a framework built around the Vuejs framework. So when you use Nuxt, you are actually using Vue.

    reply
    0
  • P粉297434909

    P粉2974349092023-09-08 00:19:35

    Nuxt is an extension of Vue, if you check this page, you will find that it mainly adds SSR (useful for SEO).
    Beyond that, it offers a flexible ecosystem with some cool default settings and some conventions. You can do without it, organize your project by convention, do your whole SSR thing, or just use Nuxt.

    Documentation should cover a lot of content, such as how to route, various hooks (asyncData and fetch), how to generate your project, how to automatically Loading some components, how to do SEO and many other things.

    Under the hood, however, Nuxt is a powerful Vue application that does a few things for you.

    reply
    0
  • Cancelreply