Vue.js vs. Nuxt.js: Discover what you have in common when coding
P粉143640496
P粉143640496 2023-09-07 09:40:51
0
2
402

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粉143640496
P粉143640496

reply all(2)
P粉421119778

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.

P粉297434909

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!