search
HomeWeb Front-endVue.js6 vue libraries worth knowing about in 2022 ['explosion']

This article will share with you 6 vue-related libraries that are worth knowing. These 6 libraries are very likely to "explode" in 2022. Come and collect them to learn more. I hope they will be helpful to everyone!

6 vue libraries worth knowing about in 2022 ['explosion']

2022 What new dark horse will emerge from the front-end circle? No one knows this.

But according to my personal understanding, the following 6 and vue related libraries are very likely to "explode" in 2022 ”, or “Keep on blasting”! Let’s learn quickly! [Related recommendations: vue.js video tutorial]

1. vueuse: Exclusive toolset for vue developers!

6 vue libraries worth knowing about in 2022 [explosion]

Official website address: https://vueuse.org/

A function toolset based on Vue's combined API.

In any environment where Vue Composition Api (combined API) can be used, you can improve your performance by installing the vueuse tool library Development efficiency (yes, both vue2.x and vue3.x can be played).

can be understood as vue exclusive lodash!

What toolsets does it have? There are too many, you can’t think of them, but you can’t use them!

Generally divided into the following categories to provide tool functions:

  • Animation
  • Browser
  • Component
  • Format Change
  • Sensor
  • State(state machine)
  • Public method
  • Listening
  • Miscellaneous

Taking myself as an example, useTemplateRefsList is a super practical method that I have recently used extensively in actual project development.

useTemplateRefsList: This method can help you quickly bind for component ref# in the vue3 component api ##. Think more thoroughly than realizing it yourself.

<script setup>
import { onUpdated } from &#39;vue&#39;
import { useTemplateRefsList } from &#39;@vueuse/core&#39;

const refs = useTemplateRefsList<HTMLDivElement>() // 用来存储元素 ref 的数组

onUpdated(() => {
  console.log(refs)
})
</script>
<template>
  <!-- 在这里绑定 ref -->
  <div v-for="i of 5" :key="i" :ref="refs.set"></div>
</template>
In addition, there are various useful tools, such as

useVModel

, useInterval, useCssVar, etc., all waiting for you. Go discover. Simply put, this is a tool library that allows you to

get off work earlier

. Use it early and get off work early. 2.

Pinia

: A better-used vue store library (vuex competing product)

天下Bitter
vuex

It’s been a long time!

6 vue libraries worth knowing about in 2022 [explosion] Official website address: https://pinia.vuejs.org/

I think back then,

vuex

The reputation of "Officially approved and passed down by the ancestors" exclusively occupies the throne of vue status management, but too many people have personally experienced the "complexity" and "inconvenience" of its design when using it. I drew a cartoon to express my feelings:

6 vue libraries worth knowing about in 2022 [explosion]6 vue libraries worth knowing about in 2022 [explosion]So, what are the advantages of

Pinia

?

    It can directly operate
  • state

    without registering Mutation! Action.

  • It supports the ability to enhance
  • Pinia

    through plug-ins.

  • Good
  • Typescript

    support.

  • Server-side rendering support.
  • Definition:
// stores/counter.js
import { defineStore } from &#39;pinia&#39;
export const useCounterStore = defineStore(&#39;counter&#39;, {
  state: () => {
    return { count: 0 }
  },
  actions: {
    increment() {
      this.count++
    },
  },
})

Use:

import { useCounterStore } from &#39;@/stores/counter&#39;
export default {
  setup() {
    const counter = useCounterStore()
    counter.count++
    counter.$patch({ count: counter.count + 1 })
    counter.increment()
  },
}

Does it seem lighter than using

vuex

? It is said that

vuex 5.x

also refers to the design ideas of Pinia in the design of API, which can also be seen from this Pinia It has also been officially recognized

6 vue libraries worth knowing about in 2022 [explosion] Therefore,

Pinia

is indeed worth learning, and it is also very useful in 2022 Frame of potential blaze. 3.

Element Plus

: The real ElementUI 3.0

Why
ElementUI 2.x

The orthodox continuation Is it called Element Plus, not Element 3.0?

This is the story of Li Kui and Li Gui, everyone understands it.

6 vue libraries worth knowing about in 2022 [explosion]Official website address: https://element-plus.gitee.io/zh-CN/

ElementUI 2. x

is the most famous and widely spread UI component library in the vue 2.x version. I think most people in the industry should recognize it. <p>Now<code>vue3 has also become the official version of vue. With the increase of vue3 users, Element Plus will inevitably usher in A period of rapid growth.

Element Plus What are the advantages?

  • API is highly consistent with Element UI 2.x, with low code migration and learning costs.

  • Core implementation is highly similar to Element UI 2.x, such as the PopupManager I introduced.

  • Use the style definition mode of css var to make style switching smoother.

  • Trustworthy maintenance team.

It can be boldly predicted that Element-Plus will still be popular in 2022.

is a non-KPI work with a pleasing style, complete components and friendly writing style.

6 vue libraries worth knowing about in 2022 [explosion]

Official website: https://www.naiveui.com/zh-CN/os-theme

Although only in some small projects And Navie UI is used in Demo, but this project is really enjoyable.

It comes from the open source of a self-used framework called "Tucson". The name of the company and the name of the framework can be said to be very interesting.

"Navie UI" from "Tucson", emmm....

Let us briefly list the highlights of this framework:

  • The perfection and richness of components are very impressive.

  • Skinning and theme support is great.

  • Excellent TypeScript support. TS YYDS!

I personally like this project very much, but how far it can go really needs time to be verified.

Hope it can be liked and used by more people in 2022!

5. Nuxt: SSR The hope of the whole village

Single-page applications are great, but slow to load and have low SEO scores.

6 vue libraries worth knowing about in 2022 [explosion]

At present, React and Vue are the two dominant companies (Angular: "What about me?"), We want a web single page application (SPA), which is too simple.
But it also raises other problems: Although the experience of single-page applications is excellent, SEO is indeed shortcomings.

Therefore, SSR came into being.

React With Next, Vue also has Nuxt.

However, every brother who is determined to do a good job in "SSR" may have to have a clear enough understanding: this is a deep pit, so proceed with caution.

In 2022, SSR will still be in strong demand from many companies. vue Currently, there is no better in SSR Nuxt is a more capable opponent, so you can still trust its performance this year.

6. vite: Fast is good

webpack is indeed good, but it is slow in development.

6 vue libraries worth knowing about in 2022 [explosion]

Official website: https://vitejs.cn/

Vite (pronounced similar to [weɪt], French, fast (meaning) is a web development build tool driven by native ES Module. It is developed based on the browser's native ES imports in the development environment and packaged based on Rollup in the production environment.

Who will be the king of front-end construction in 2022? My answer is "webpack". (vite: Are you praising others on my site?)

But webpack’s market will definitely be cannibalized by vite, especially for small and medium-sized applications.

Why? Just because it’s “fast”!

The most attractive aspect of webpack 5 is the "module federation", which establishes webpack 5's leadership in micro-application scenarios.

But not everyone needs "module federation". What many companies need is SPA, which is short, easy and fast, and can be used once you get started.

You said: vue-cli@next will be based on vite. (Experience it for yourself...) The growth of

vite is far from reaching its peak, and 2022 is worth looking forward to!

For more programming-related knowledge, please visit: Introduction to Programming! !

The above is the detailed content of 6 vue libraries worth knowing about in 2022 ['explosion']. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:掘金社区. If there is any infringement, please contact admin@php.cn delete
Netflix's Frontend: Examples and Applications of React (or Vue)Netflix's Frontend: Examples and Applications of React (or Vue)Apr 16, 2025 am 12:08 AM

Netflix uses React as its front-end framework. 1) React's componentized development model and strong ecosystem are the main reasons why Netflix chose it. 2) Through componentization, Netflix splits complex interfaces into manageable chunks such as video players, recommendation lists and user comments. 3) React's virtual DOM and component life cycle optimizes rendering efficiency and user interaction management.

The Frontend Landscape: How Netflix Approached its ChoicesThe Frontend Landscape: How Netflix Approached its ChoicesApr 15, 2025 am 12:13 AM

Netflix's choice in front-end technology mainly focuses on three aspects: performance optimization, scalability and user experience. 1. Performance optimization: Netflix chose React as the main framework and developed tools such as SpeedCurve and Boomerang to monitor and optimize the user experience. 2. Scalability: They adopt a micro front-end architecture, splitting applications into independent modules, improving development efficiency and system scalability. 3. User experience: Netflix uses the Material-UI component library to continuously optimize the interface through A/B testing and user feedback to ensure consistency and aesthetics.

React vs. Vue: Which Framework Does Netflix Use?React vs. Vue: Which Framework Does Netflix Use?Apr 14, 2025 am 12:19 AM

Netflixusesacustomframeworkcalled"Gibbon"builtonReact,notReactorVuedirectly.1)TeamExperience:Choosebasedonfamiliarity.2)ProjectComplexity:Vueforsimplerprojects,Reactforcomplexones.3)CustomizationNeeds:Reactoffersmoreflexibility.4)Ecosystema

The Choice of Frameworks: What Drives Netflix's Decisions?The Choice of Frameworks: What Drives Netflix's Decisions?Apr 13, 2025 am 12:05 AM

Netflix mainly considers performance, scalability, development efficiency, ecosystem, technical debt and maintenance costs in framework selection. 1. Performance and scalability: Java and SpringBoot are selected to efficiently process massive data and high concurrent requests. 2. Development efficiency and ecosystem: Use React to improve front-end development efficiency and utilize its rich ecosystem. 3. Technical debt and maintenance costs: Choose Node.js to build microservices to reduce maintenance costs and technical debt.

React, Vue, and the Future of Netflix's FrontendReact, Vue, and the Future of Netflix's FrontendApr 12, 2025 am 12:12 AM

Netflix mainly uses React as the front-end framework, supplemented by Vue for specific functions. 1) React's componentization and virtual DOM improve the performance and development efficiency of Netflix applications. 2) Vue is used in Netflix's internal tools and small projects, and its flexibility and ease of use are key.

Vue.js in the Frontend: Real-World Applications and ExamplesVue.js in the Frontend: Real-World Applications and ExamplesApr 11, 2025 am 12:12 AM

Vue.js is a progressive JavaScript framework suitable for building complex user interfaces. 1) Its core concepts include responsive data, componentization and virtual DOM. 2) In practical applications, it can be demonstrated by building Todo applications and integrating VueRouter. 3) When debugging, it is recommended to use VueDevtools and console.log. 4) Performance optimization can be achieved through v-if/v-show, list rendering optimization, asynchronous loading of components, etc.

Vue.js and React: Understanding the Key DifferencesVue.js and React: Understanding the Key DifferencesApr 10, 2025 am 09:26 AM

Vue.js is suitable for small to medium-sized projects, while React is more suitable for large and complex applications. 1. Vue.js' responsive system automatically updates the DOM through dependency tracking, making it easy to manage data changes. 2.React adopts a one-way data flow, and data flows from the parent component to the child component, providing a clear data flow and an easy-to-debug structure.

Vue.js vs. React: Project-Specific ConsiderationsVue.js vs. React: Project-Specific ConsiderationsApr 09, 2025 am 12:01 AM

Vue.js is suitable for small and medium-sized projects and fast iterations, while React is suitable for large and complex applications. 1) Vue.js is easy to use and is suitable for situations where the team is insufficient or the project scale is small. 2) React has a richer ecosystem and is suitable for projects with high performance and complex functional needs.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor