Softwr

Web Development · head to head

Preact vs Vue.js

Preact logo

Preact

Web Development

3kB alternative to React with the same modern API

From
Free
Free plan
Yes
Vue.js logo

Vue.js

Web Development

The Progressive JavaScript Framework

From
Free
Free plan
Yes

The short version

  • Vue.js is a progressive JavaScript framework for building user interfaces.
  • Both are free.
  • Only Preact lists 3kB runtime; only Vue.js lists template syntax.
  • Where Preact falls short: compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose.
  • Where Vue.js falls short: multiple state management options (Vuex, Pinia, plain reactive) can confuse developers without clear guidance.

How do Preact and Vue.js differ?

Preact and Vue.js differ on platforms (Web against Web, API). Only the attributes on which Preact and Vue.js actually diverge.

Attributes where Preact and Vue.js differ
AttributePreactVue.js
PlatformsWebWeb, API

Identical on both: starting price (Free), free tier (Yes), category (Web Development).

Not yet recorded: pricing model for Vue.js, founded for Preact.

Which features does each one have?

They share no listed features; 4 appear only for Preact and 20 only for Vue.js. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Preact

  • 3kB runtime
  • preact/compat
  • Same modern API
  • Fast rendering

Only in Vue.js

  • Template syntax
  • Reactive data binding
  • Component system
  • Virtual DOM
  • Computed properties
  • Watchers
  • Lifecycle hooks
  • Event handling

What is each one used for?

Preact is most often brought in for embedded widgets that load inside someone else’s page and must stay small; Vue.js for single-page applications. The jobs each tool is most often brought in to do.

Preact

  • Embedded widgets that load inside someone else’s page and must stay smallnot Vue.js
  • Marketing and content sites where JavaScript payload affects Core Web Vitalsnot Vue.js
  • Applications targeting low-bandwidth or low-powered devicesnot Vue.js

Vue.js

  • Single-page applicationsnot Preact
  • Progressive web appsnot Preact
  • Interactive interfacesnot Preact
  • Rapid prototypingnot Preact
  • Component librariesnot Preact
  • Modern web appsnot Preact

Where do Preact and Vue.js fall short?

Preact's most cited limit: behavioural differences from React exist in edge cases, particularly around event handling. Vue.js's: multiple state management options (Vuex, Pinia, plain reactive) can confuse developers without clear guidance. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Preact

  • Compatibility through preact/compat is good but not total, and some React libraries break in ways that are hard to diagnose
  • Behavioural differences from React exist in edge cases, particularly around event handling
  • A much smaller community, so unusual problems have fewer existing answers than React

Vue.js

  • Multiple state management options (Vuex, Pinia, plain reactive) can confuse developers without clear guidance
  • Reactive system has limitations detecting property additions or deletions in objects, requiring explicit methods
  • Official documentation assumes prior experience, making advanced concepts harder for newcomers to learn

How much do Preact and Vue.js cost?

Preact is free to use; Vue.js is free to use. Plan by plan below, from each vendor's own pricing page.

Preact

Free
  • PreactFree
    • Full library
    • Commercial use permitted
    • No usage limits

Vue.js

Free
  • Open source (MIT licence)Free

Which should you pick?

Choose Preact if

  • You need 3kb runtime.
  • You want to start without paying.
  • You also want preact/compat.

Choose Vue.js if

  • You need template syntax.
  • You want to start without paying.
  • You work on Web, API.
  • You also want reactive data binding.

Questions people ask

Is Preact or Vue.js better?
It depends on the job. Preact fits embedded widgets that load inside someone else’s page and must stay small; Vue.js fits single-page applications. Preact starts at Free and Vue.js at Free.
Which is cheaper, Preact or Vue.js?
Preact starts at Free and Vue.js at Free.
Does Preact or Vue.js run on more platforms?
Preact runs on Web. Vue.js runs on Web, API.
Can I use Preact for free?
Both have a free tier, so you can try either at no cost before committing.
What is Preact best used for?
Preact is most often used for embedded widgets that load inside someone else’s page and must stay small, marketing and content sites where javascript payload affects core web vitals, applications targeting low-bandwidth or low-powered devices. Of those, embedded widgets that load inside someone else’s page and must stay small and marketing and content sites where javascript payload affects core web vitals are not what Vue.js is typically brought in for.
What can Preact do that Vue.js cannot?
Preact covers 3kB runtime, preact/compat, Same modern API, Fast rendering. Vue.js covers Template syntax, Reactive data binding, Component system, Virtual DOM.

Answered from the vendors’ own pages

Preact: Is Preact free?

Yes, open source under the MIT licence.

Vue.js: Is Vue.js free to use?

Yes. Vue.js is free and open-source under the MIT License. It has been actively maintained since 2014 with no licensing fees.

Source
Preact: Can I use React libraries with Preact?

Most, through the preact/compat layer. Compatibility is good but not complete, so libraries relying on React internals can break.

Vue.js: What are Vue.js's core strengths?

Vue.js emphasizes incremental adoption with an ecosystem spanning library to framework, builds on standard HTML/CSS/JavaScript with intuitive APIs, and features a compiler-optimized rendering system rarely needing manual optimization.

Source
Preact: Why choose Preact over React?

Bundle size, almost always. If payload is not a binding constraint, React’s ecosystem is usually the better trade.

Vue.js: What state management libraries does Vue.js support?

Vue.js supports multiple state management options including Pinia (official), Vuex, or plain reactive/ref APIs. Vue 3 added reactive APIs, creating options for developers.

Source
Share

Related pages

Other head to heads