Svelte VS React

Compare Svelte vs React and see what are their differences.

Svelte

Cybernetically enhanced web apps (by sveltejs)

React

A declarative, efficient, and flexible JavaScript library for building user interfaces. (by facebook)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
Svelte React
196 524
53,386 178,412
2.7% 0.9%
9.6 9.8
about 20 hours 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.

Svelte

Posts with mentions or reviews of Svelte. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-30.
  • Meet our new pei.
    1 project | reddit.com/r/sharpei | 4 Dec 2021
    Her name is Svelte (slender and elegant). But the name was inspired from a software framework called Svelte
  • Svelte's lifecycle methods can be used anywhere
    3 projects | dev.to | 30 Nov 2021
    I haven't quite wrapped my mind around it, but you can even use afterUpdate in Svelte to replicate React's useEffect hook. See this example from Rich Harris, which I found in an interesting GitHub issue discussing the edges of Svelte's reactivity.
  • Top 6 Frontend Frameworks in 2022 for Web Development
    2 projects | dev.to | 29 Nov 2021
    Svelte
  • How to update values in database shown in html table?
    3 projects | reddit.com/r/cs50 | 24 Nov 2021
    This is a bit complex, and you might want to use a UI framework like React, Vue, or Svelte.
  • I built svelte-link-preview
    2 projects | reddit.com/r/sveltejs | 23 Nov 2021
    When linking https://svelte.dev/ the description is set to null which is probably due to the uppercase letter in the meta tag? Is this something the proxy could/should take into account so the description is read nevertheless?
  • The Sacred Steps to Achieving Good Documentation
    5 projects | dev.to | 23 Nov 2021
    Of course, the correct tool, as usual, depends on the requirements of your project. For an API, Apiary might be your best choice, if you want a more generalized documentation you Read the Docs might give you a quick and free way to have your documentation up and running, however if you really want a lot more control over styling and such, docussaurus can really help. There is also a last option which is quite rare though: just make a static website from the ground up. You can use React, Svelte, or really anything you want to build a documentation site. It's a lot more work than any of the previous options, but if you truly believe you need to control every single aspect  of your documentation it is still a possibility.
  • Adding React to an Optimizely UI - Part 2
    7 projects | dev.to | 19 Nov 2021
    But the big name players are still React, Angular and Vue, in my opinion (and I fully confess there was a lot of my opinion in the decision phase here!). Other noteworthy candidates were Next.JS and Svelte.
  • Dev in Dev: Issue 1 Nov 2021
    3 projects | dev.to | 18 Nov 2021
    AJAX and Single Page Apps ushered in a new age of web experiences, however it is not without it's flaws. Transitional Apps is a new paradigm of web apps which proposes a new direction. Rich Harris of Svelte introduces this concept at Jam Stack Conf 2021.
  • Testing Svelte components with Jest and Vite
    8 projects | dev.to | 18 Nov 2021
    Svelte hasn't anointed a set of testing tools or does not advocate for a particular testing strategy. It gives some basic advice. More established frameworks have recommendations and integrations specific to their CLI tooling - React recommends using Jest and React Testing Library, and Vue recommends using Mocha or Jest with Vue Testing Library. In theory, you can use whatever JavaScript testing library you want for testing, because in the end you will be testing JavaScript code, regardless of whether it is transpiled or not. However, it can prove to be tricky to integrate different tools into a frontend toolchain for your "dev stack".
  • Memoirs of a lone JavaScript developer PART 2 : Svelte. An awful implementation of an old idea.
    6 projects | reddit.com/r/u_liaguris | 17 Nov 2021

React

Posts with mentions or reviews of React. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-04.
  • Awesome React Resources
    34 projects | dev.to | 4 Dec 2021
    React GitHub
    34 projects | dev.to | 4 Dec 2021
    React Official Website
  • Deploy a Vue/React app to GH Pages
    10 projects | dev.to | 3 Dec 2021
    Vue is intended to be more beginner-friendly (I agree it is) and the vue repo has more GH stars than the react repo, if that is any indication of adoption by the community.
  • 🧶 Implicit CLSX in React
    6 projects | dev.to | 1 Dec 2021
    Using clsx or classnames in React lately has become a trend with utility-first CSS frameworks like Tailwind CSS, where you have to write a lot of classes, and sometimes also with conditionals.
  • CPU Usage
    1 project | reddit.com/r/bugs | 1 Dec 2021
    b/c it continuously rebuilds itself on every fart of a user, thanks to https://github.com/facebook/react/
  • Best Frontend Web Frameworks in 2021
    6 projects | dev.to | 1 Dec 2021
    React is a frontend open-source JavaScript library used to create interactive UIs (User Interfaces), which helps improve the speed of applications. It is one of the most straightforward frameworks to learn and was developed by Facebook to resolve the code maintainability issues due to constant addition and improvements. Facebook and other individual front-end engineers still maintain it. ‍
  • Skill and Knowledge Sharing – Creating Community with Arisa Fukuzaki
    3 projects | dev.to | 1 Dec 2021
    At the same time, I also was working for my friend who lived in Hiroshima because I'm from Hiroshima. So I developed, I would say web application. Because from her request, she wanted to have a web project as well as this web project to have the real-time chat feature. So I was integrating Firebase as BaaS, Backend-as-a-Service. And the front-end side was...at the time; I couldn't do React [laughs] because that was my first project, and I had just started to study. So I used the simple Vanilla JavaScript. So those two were working at the same time, so I would count these two as my first project.
  • Top 7 React Developer Tools to Use in 2021 [With Bonus!]
    5 projects | reddit.com/r/u_WrapPixel9 | 1 Dec 2021
    And that was it! We hope these tools will help you in your upcoming React projects. Keep on exploring the vast ecosystem React provides by keeping a tab on their official website.
  • What are some issues with using React/Redux?
    6 projects | reddit.com/r/reactjs | 30 Nov 2021
    Like on reacts home page it literally says its "A JavaScript library for building user interfaces" where as things like next.js etc. are considered frameworks due to having a extra features built in which would give you a good set of rules to stick to instead of having to go off and retrospectively pick these things to give you these common features of web apps.
  • React 101: The Basics
    12 projects | dev.to | 30 Nov 2021
    React is a JavaScript library built by Facebook which creates a virtual DOM and allows a website or web application to update (or react) based on changes in data. It has been growing in popularity since it's release in 2016, even overthrowing jQuery as the most in-demand JavaScript skill, a title which jQuery had held for about a decade.

What are some alternatives?

When comparing Svelte and React you can also consider the following projects:

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

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.

solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]

awesome-blazor - Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.

Next.js - The React Framework

SvelteKit - The fastest way to build Svelte apps

Vue.js - 🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

Aurelia 1 - The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia.

Angular - The modern web developer’s platform