Vue.js VS Preact

Compare Vue.js vs Preact and see what are their differences.

Vue.js

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core (by vuejs)

Preact

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. (by preactjs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
Vue.js Preact
381 111
206,901 36,021
0.2% 0.5%
7.9 9.3
16 days ago 5 days ago
TypeScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Vue.js

Posts with mentions or reviews of Vue.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-13.
  • Here are the 10 projects I am contributing to over the next 6 months. Share yours
    13 projects | dev.to | 13 Apr 2024
    Vuejs
  • Vue 2 Final Release
    1 project | news.ycombinator.com | 25 Dec 2023
  • 🎄 Top Front-End Frameworks in 2024 Worth Your Time and Effort to Master
    5 projects | dev.to | 13 Dec 2023
    Vue.js is a big favorite for making websites because it's easy to use and fits in well with other stuff. Many people worldwide are using it, and the community keeps growing.
  • Angular vs. React vs. Vue.js: Comparing performance
    16 projects | dev.to | 6 Sep 2023
    Vue has a thriving ecosystem with a wide range of third-party libraries and plugins available for extending its functionality. These libraries cover everything from state management to routing, making it easy for developers to find solutions to common problems and enhance their development workflow. As of this writing, Vue has 200k GitHub stars.
  • Top 10 "Must Have" Repositories for Web Developers
    6 projects | dev.to | 11 Jul 2023
    6. Vue.js
  • Vue 2 vs vue 3 - The Differences
    2 projects | dev.to | 5 Jun 2023
    I have got the privilege of working on Vue 2 couple of months ago and its really amazing framework to work with .
  • Angular v16 Is Here
    6 projects | news.ycombinator.com | 3 May 2023
    Angular is as little innovative for web frameworks as Firefox-ESR is for browsers. It merely keeps copying features from other frameworks - just many years later. It is a chronically outdated framework that always struggles to keep up with its competitors. It would be ok if those were deliberate design decisions, but if the features get copied some day anyway, what is the point? Why not do it the right way from the start?

    For example, this update brings us computed properties, an essential feature for any complex performant web application that was made popular by Vue.js 10 years ago [1]. And now in 2023 we get it in Angular, essentially a confirmation by its devs that its lack has always been a design error.

    I also cannot understand the "mature" argument. For example, it took five years for documentation on `` to arrive [2]. This is something I'd expect from the side project of a lone programmer, not an enterprise-level framework.

    The only upsides of Angular are its "batteries included" approach and the (debatable) default of RXJS, while the downsides are plenty.

    [1] https://github.com/vuejs/vue/tree/218557cdec830a629252f4a9e2...

  • What's happening with the forum?
    2 projects | /r/vuejs | 13 Apr 2023
    It's down since months. https://github.com/vuejs/vue/issues/11867
  • How to scrape the web with Puppeteer in 2023
    5 projects | dev.to | 7 Mar 2023
    { "user": "vuejs", "repo": "vue", "url": "https://github.com/vuejs/vue", "stars": 201555, "description": "🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.", "topics": [ "javascript", "framework", "vue", "frontend" ], "label": "repository", "commitCount": 3544 }
  • What is Vue?
    3 projects | dev.to | 6 Feb 2023
    Vue.js is a progressive open-source MVVM frontend JavaScript framework that is designed to be implemented incrementally since the core library focuses only on the presentation layer. Nevertheless, this framework is used for building UI (user interfaces) and complex single-page applications with modern tools and libraries to support them. It enables you to take advantage of libraries for client-side routing and state management when you need it.

Preact

Posts with mentions or reviews of Preact. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.
  • Preact vs React: A Comparative Guide
    2 projects | dev.to | 23 Apr 2024
    In this post, we get to know more about Preact, one of this year's trending libraries. And we'll compare it to React to see which one suits better for our projects.
  • Episode 24/13: Native Signals, Details on Angular/Wiz, Alan Agius on the Angular CLI
    11 projects | dev.to | 5 Apr 2024
    Similarly to Promises/A+, this effort focuses on aligning the JavaScript ecosystem. If this alignment is successful, then a standard could emerge, based on that experience. Several framework authors are collaborating here on a common model which could back their reactivity core. The current draft is based on design input from the authors/maintainers of Angular, Bubble, Ember, FAST, MobX, Preact, Qwik, RxJS, Solid, Starbeam, Svelte, Vue, Wiz, and more…
  • Proposal: Signals as a Built-In Primitive of JavaScript
    9 projects | news.ycombinator.com | 31 Mar 2024
    Those who want to develop a library that can be used by any other reactive framework. I often see SignalLike type that tries to subtype it.

    https://github.com/preactjs/preact/blob/757746a915d186a90954...

  • Preact: Lightweight React Alternative
    1 project | dev.to | 27 Jan 2024
    The official Preact documentation.
  • How I built a cross-framework frontend library
    3 projects | dev.to | 17 Jan 2024
    At the very bottom of the image, there are 3 blocks that I chose to call application components. If you are building a cross-framework library, these can be built with whatever tools you want! Only catch is, all the tools you use to build it, will be needed by everyone consuming it. So choose wisely, and be mindful of how many kilobytes of third party code you will need in order to ship. In Schedule-X, I chose to use Preact. You will probably be fine with most lightweight virtual DOM libraries, and just like with frameworks there are a few to pick from.
  • React Jam just started, making a game in 13 days with React
    5 projects | news.ycombinator.com | 26 Dec 2023
    >> React is not traditionally used for making games, but that's part of the fun and the challenge. R

    > MS Flight Simulator cockpits are built with MSFS Avionics Framework which is React-like and MIT licensed:

    https://github.com/microsoft/msfs-avionics-mirror/tree/main/...

    preactjs may or may not be faster: https://preactjs.com/

    Million.js is faster than preact, and lists a number of references under Acknowledgements: https://github.com/aidenybai/million#acknowledgments

    https://million.dev/docs :

    > We use a novel approach to the virtual DOM called the block virtual DOM. You can read more on what the block virtual DOM is with Virtual DOM: Back in Block and how we make it happen in React with Behind the block().*

    React API reference > Components > Profiler:

  • Have You Built with Preact?
    1 project | news.ycombinator.com | 11 Dec 2023
  • Quando um framework é melhor que a manipulação nativa do DOM
    2 projects | dev.to | 9 Dec 2023
  • HTML Data Attributes: One of the Original State Management Libraries
    5 projects | dev.to | 29 Nov 2023
    DEV is a Rails monolith, which uses Preact in the front-end using islands architecture. The reason why I mention all this is that it's not a full-stack JavaScript application, and there is no state management library like Redux or Zustand in use. The data store, for the most part on the front end, is all data attributes.
  • Show HN: Cami.js – A No Build, Web Component Based Reactive Framework
    6 projects | news.ycombinator.com | 4 Nov 2023

What are some alternatives?

When comparing Vue.js and Preact you can also consider the following projects:

lit - Lit is a simple library for building fast, lightweight web components.

react-18 - Workgroup for React 18 release.

htmx - </> htmx - high power tools for HTML

Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.

vite - Next generation frontend tooling. It's fast!

solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.

Stimulus - A modest JavaScript framework for the HTML you already have [Moved to: https://github.com/hotwired/stimulus]

React - The library for web and native user interfaces.

Svelte - Cybernetically enhanced web apps

lit-element - LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.