Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Preact
Preact

62
69
+ 1
19
Svelte
Svelte

60
95
+ 1
71
Add tool

Preact vs Svelte: What are the differences?

Preact: A fast 3k React alternative. Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped); Svelte: A UI framework that compiles into tiny standalone JavaScript modules. If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.

Preact and Svelte can be categorized as "Javascript UI Libraries" tools.

"Lightweight" is the top reason why over 7 developers like Preact, while over 2 developers mention "Javascript compiler (do that browsers don't have to)" as the leading cause for choosing Svelte.

Preact and Svelte are both open source tools. It seems that Preact with 22.9K GitHub stars and 1.19K forks on GitHub has more adoption than Svelte with 19.2K GitHub stars and 715 GitHub forks.

What is Preact?

Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped).

What is Svelte?

If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Preact?
Why do developers choose Svelte?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
      Be the first to leave a con
      What companies use Preact?
      What companies use Svelte?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Preact?
      What tools integrate with Svelte?
        No integrations found

        Sign up to get full access to all the tool integrationsMake informed product decisions

        What are some alternatives to Preact and Svelte?
        React
        Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
        Inferno
        Inferno is an isomorphic library for building high-performance user interfaces, which is crucial when targeting mobile devices. Unlike typical virtual DOM libraries like React, Mithril, Virtual-dom, Snabbdom and Om, Inferno uses techniques to separate static and dynamic content. This allows Inferno to only "diff" renders that have dynamic values.
        Glimmer
        Glimmer is one of the fastest DOM rendering engines, delivering exceptional performance for initial renders as well as updates.
        Mithril
        Mithril is around 12kb gzipped thanks to its small, focused, API. It provides a templating engine with a virtual DOM diff implementation for performant rendering, utilities for high-level modelling via functional composition, as well as support for routing and componentization.
        jQuery
        jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
        See all alternatives
        Decisions about Preact and Svelte
        No stack decisions found
        Interest over time
        Reviews of Preact and Svelte
        No reviews found
        How developers use Preact and Svelte
        Avatar of dschulten
        dschulten uses SvelteSvelte
        • Ideal for microfrontends
        • Natural component model
        • Easy to learn
        • Fast and extremely small
        • Compiles both webcomponents and plain components Great community
        How much does Preact cost?
        How much does Svelte cost?
        Pricing unavailable
        Pricing unavailable
        News about Preact
        More news
        News about Svelte
        More news