Preact
Svelte
Preact | Svelte | |
---|---|---|
118 | 681 | |
36,913 | 80,286 | |
0.4% | 0.9% | |
9.2 | 9.9 | |
2 days ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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.
Preact
-
Dependency management fatigue, or why I forever ditched React for Go+Htmx+Templ
> React is a small rendering library
Sorry, can't agree. React is a state management library that also attaches efficient rendering on top of the DOM diff it computes as it propagates the state changes.
This allows React apps to remain so simple (one function per component) and so composable without turning into an unmanageable dish of callback / future spaghetti.
There is a number of other VDOM libraries, but what sets React apart is the data / state flow strictly in one direction. This allows to reap many of the benefits of functional programming along the way, like everything the developer sees being immutable; not a coincidence.
Regarding the size, preact [1] is mostly API-compatible, but also absurdly small (3-4 kB minified), actually smaller than HTMX (10 kB). But with preact you likely also want preact-iso, so the size grows a little bit.
[1]: https://preactjs.com/
-
Preact vs React: Which Framework is Right for Your Next Project?
Performance and user experience have become the lifeline of modern web development. Two libraries that have gained immense popularity among developers for developing interactive user interfaces are React and Preact.
-
Deploying my Astro + Turso + Drizzle project to Cloudflare Pages
For rendering the map, I went with Preact and deck.gl.
-
Build Web Apps Absurdly Fast with Vite
This command creates a new Vite project with React. Feel free to replace “react” with “vue” or “vanilla” if that’s more your jam. Svelte, Preact, Qwik, and others are supported, too!
-
Mitosis - Using Astro.js as the dev server to preview the component with hot-reload
Note: Astro supports a variety of popular frameworks including React, Preact, Svelte, Vue, SolidJS, AlpineJS and Lit with official integrations. While for other frameworks e.g. Angular and Qwik, you may still benefit from this tutorial and you would need to further set up the community maintained framework integrations.
-
7 Most Popular JavaScript Front-End Frameworks in 2024 Visualized with Graphs 📊📈
GitHub | npm | website
-
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.
-
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, Starbeam, Svelte, Vue, Wiz, and more…
-
Proposal: Signals as a Built-In Primitive of JavaScript
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
The official Preact documentation.
Svelte
-
Are Angular Resolvers on Life Support ?
Svelte - no recommended usage on GH for pure Svelte, although you would need to use $effect with .then() instead of async. Svelte 4 uses stores, which would follow the same unrecommended pattern inside the store. See Svelte 5 with Firebase
-
How to Build a Content-Driven Static Site with Markdown, SvelteKit and Fusionable
SvelteKit as frontend framework
-
A Guide to Server-Side Rendering
Svelte
-
Open Source Contribution: Round 2
When I first accepted this feature, I did not realize that I would have to work with something completely new to me: Svelte, an open-source component-based front-end framework! This came as a shock to me as I opened the ChatInput component and realized that this was a file where there was TypeScript code, HTML elements, and styles all in the same file!
-
Experiences and Caveats of Svelte 5 Migration
It took longer to migrate to Svelte 5 than I had expected. I still have not pushed this new version to production, though. The updates to Svelte 5 are still coming in with quite high frequency.
-
Building a Secure Event Booking App with FACEIO and Svelte
In this tutorial, we'll build Authvents with Svelte, an event booking platform, and integrate FACEIO for biometric authentication, allowing users to sign in and access ticket dashboards securely with facial recognition.
-
Svelte 5 is out!!!
More details can be found in Svelte Github page
-
Svelte 5 Released
I love Svelte and use it for all my personal projects and all company projects (except strictly static sites are still built with just 11ty but I hate it and want to move off it).
But I'm going to wait a bit on v5 for the company, scanning all the issue headlines, it looks like there are a still a lot of unresolved edge cases: https://github.com/sveltejs/svelte/issues
As for my latest personal project, upgrading right now so I can help find more of those edge cases :D
- Svelte 5 Release approved and merged
What are some alternatives?
react-18 - Workgroup for React 18 release.
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
lit - Lit is a simple library for building fast, lightweight web components.
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]
qwik - Instant-loading web apps, without effort
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
awesome-blazor - Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.
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.
Next.js - The React Framework