Software Alternatives & Reviews

Preact.js VS Svelte

Compare Preact.js VS Svelte and see what are their differences

Preact.js logo Preact.js

Preact is a fast 3kB alternative to React with the same modern API. Components & Virtual DOM.

Svelte logo Svelte

Cybernetically enhanced web apps
  • Preact.js Landing page
    Landing page //
    2023-05-11
  • Svelte Landing page
    Landing page //
    2023-07-27

We recommend LibHunt Svelte for discovery and comparisons of trending Svelte projects.

Preact.js videos

JS frameworks are replaceable

Svelte videos

Svelte vs React vs Angular vs Vue

More videos:

  • Review - Why Svelte is the best JS "framework"
  • Review - Oh crap, here comes *another* JavaScript framework || SVELTE || Sveltejs

Category Popularity

0-100% (relative to Preact.js and Svelte)
Javascript UI Libraries
24 24%
76% 76
JavaScript Framework
30 30%
70% 70
JavaScript
100 100%
0% 0
JS Library
0 0%
100% 100

User comments

Share your experience with using Preact.js and Svelte. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Preact.js and Svelte

Preact.js Reviews

20 Best JavaScript Frameworks For 2023
Preact is built with the same core principle of React – A component-based approach with Virtual DOM while completely compatible with React. It can even use React packages without compromising on speed, performance, and leaner size. In instances where the full potential of React isn’t necessary, most developers even use React during development and switch to Preact for...
Top 15 jQuery Alternatives To Know
ReactJS is a powerful JavaScript library to create user interfaces. Developers can design easy views at each stage in the application and there is regular update and rendering for the actual components whenever there is any data alteration. It is component-driven and creates encapsulated components that manage their own state.
Top 5 JavaScript Frameworks To Learn in 2021
But according to the graph above, we can notice a decrease in interest in Preact. This might result from having many similar frameworks with the same specs, like react-lite, Inferno, etc. However, knowing a framework like Preact will be useful for your development journey.
Source: enlear.academy
The Best JavaScript Frameworks You’re Not Using
One thing you may be wondering…if Preact is faster on page load, what are some of the trade-offs Ben Halpern mentioned in his quote above? There is a great discussion thread started by Dan Abramov of the React team that addresses this. Responding to a question asking for his thoughts on Preact, Dan has this to say:
Source: jsreport.io

Svelte Reviews

The 20 Best Laravel Alternatives for Web Development
The next of these Laravel alternatives is Svelte. It cuts through the complexity, snipping off any excess, pre-compiling its magic to keep your app lightweight without shedding any muscle. The end result? Lightning strikes in web performance.
20 Best JavaScript Frameworks For 2023
Svelte, unlike other JavaScript frameworks such as React or Vue.js, has no virtual DOM. Instead, you build components boilerplate-free in simple HTML, CSS, and JavaScript code. Svelte Compiler then compiles this code into small framework-free vanilla JavaScript modules during build time and surgically updates the DOM when the state changes. So unlike other traditional...
Comparing Vue.js to new JavaScript frameworks
Svelte, however, solves this performance problem at build time. This JavaScript framework is known for its speed and performance. It comes with a compiler that converts the Svelte framework code to vanilla JavaScript when running a build on an app.
Top 5 JavaScript Frameworks To Learn in 2021
Apart from speed and performance, Svelte has some exciting features like less boilerplate, a component-based model, SEO support, etc. However, Svelte hasn't got the attention it requires due to React. But with this rising trend, Svelte will be a good option to learn in 2021.
Source: enlear.academy
The Best JavaScript Frameworks You’re Not Using
Svelte works differently than some of the other front end libraries/frameworks that you may be familiar with. Your code is compiled at build time and this has big performance benefits. In fact, Svelte is one of the best performers in recent benchmarks.…
Source: jsreport.io

Social recommendations and mentions

Based on our record, Svelte should be more popular than Preact.js. It has been mentiond 352 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Preact.js mentions (83)

  • Preact vs React: A Comparative Guide
    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. - Source: dev.to / about 19 hours ago
  • Episode 24/13: Native Signals, Details on Angular/Wiz, Alan Agius on the Angular CLI
    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,... - Source: dev.to / 19 days ago
  • How I built a cross-framework frontend library
    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... - Source: dev.to / 4 months ago
  • React Jam just started, making a game in 13 days with React
    >> 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/src/sdk/components Million.js is faster than preact, and lists a number of references under Acknowledgements: ... - Source: Hacker News / 4 months ago
  • HTML Data Attributes: One of the Original State Management Libraries
    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. - Source: dev.to / 5 months ago
View more

Svelte mentions (352)

  • How to optimise React Apps?
    React has introduced measures like batching state updates, background concurrent rendering and memoization to tackle this. My opinion is that the best way to solve the problem is by improving their reactivity model. The app needs to be able to track the code that should be re-run on updating a given state variable and specifically update the UI corresponding to this update. Tools like solid.js and svelte work in... - Source: dev.to / 17 days ago
  • Episode 24/13: Native Signals, Details on Angular/Wiz, Alan Agius on the Angular CLI
    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,... - Source: dev.to / 19 days ago
  • Svelte for Beginners: Easy Guide
    Svelte is a powerful web framework that offers a fresh approach to building web applications. Its simplicity, reactivity model, and built-in features make it an excellent choice for developers looking to create efficient and maintainable applications. By following this guide, you should now have a good understanding of how to get started with Svelte and build your first components, routes, and transitions. You can... - Source: dev.to / 22 days ago
  • Trying to use dotnet watch with Svelte
    Use .NET features (especially dotnet watch) as a setup for a client-side Svelte application, starting from a simple C# console app. - Source: dev.to / 3 months ago
  • Why I keep an eye on the Vue ecosystem and you should too
    Volar originally was Vue3's language support tool for VScode (I don't know about other editors). By today, volar has become a language indipendent framework to create language tools. It might still be a bit early for the dev with skill issues like me to use it and build some tools, but astro and svelte already use Volar to create their language tools. - Source: dev.to / about 2 months ago
View more

What are some alternatives?

When comparing Preact.js and Svelte, you can also consider the following products

Inferno - An extremely fast React-like javascript library for building modern user interfaces.

Vue.js - Reactive Components for Modern Web Interfaces

React - A JavaScript library for building user interfaces

Tailwind CSS - A utility-first CSS framework for rapidly building custom user interfaces.

Deku - Functional view library for building UI components as an alternative to React

AngularJS - AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.