Preact VS react-native

Compare Preact vs react-native and see what are their differences.


⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. (by preactjs)


A framework for building native applications using React (by facebook)
Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
Preact react-native
42 204
30,689 100,438
1.0% 1.0%
8.4 9.9
7 days ago 6 days ago
JavaScript JavaScript
MIT License GNU General Public License v3.0 or later
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.


Posts with mentions or reviews of Preact. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-06.
  • Why you have to use className in React, but not in Preact?
    1 project | | 13 Jan 2022
    You see, there is a JS framework, called Preact. It's an alternative to React with the same API. And there is a very interesting statement on its official page.
  • Building Chrome extension with Vite ⚡️
    3 projects | | 6 Jan 2022
    In this article, we will create a simple Chrome extension, that will be responsible for displaying recent top posts from DEV Community. For this, we will use Preact bootstrapped with Vite build tool.
  • Preact Async Rendering
    2 projects | | 5 Jan 2022
    Bear in mind that this is still under review by the Preact team but if you need it desperately like us, feel free try out the preact-async package on npm. I'm hoping that Preact team will accept this change and get it into the main package.
  • My Evaluation of SvelteKit for Full-Stack Web App Development
    17 projects | | 5 Jan 2022
    [2] "preact-compat adds somewhere around 2kb to your bundle size, but has the advantage of supporting the vast majority of existing React modules you might find on npm"
  • Anyone Know How I Could Replicate This Look for my site? It's
    1 project | | 20 Dec 2021
    Not sure what exactly you would like to replicate but frontend is done with Preact . Hope that helps.
  • Vala reactive programming
    2 projects | | 6 Dec 2021
    I've been doing some web programming using preact these last weeks and one of the things that impressed the most was the way logic and UI are split in code. When doing functional components this is specially explicit. Your function returns whatever should be displayed by the component and receives a props object containing all the information the components need to render. A component rerenders when some of its props are changed, either because an external component made changes or in response to an event.
  • How to use Preact with Astro
    2 projects | | 21 Nov 2021
    Preact is a "Fast 3kB alternative to React with the same modern API". It's smaller than React but shares most of it's features (Hooks, Context), so you can write normal React code but benefit from better performance.
  • Don't Optimize Your React App, Use Preact Instead
    4 projects | | 1 Nov 2021
    A few months ago, I wrote an article based on optimizing react loading time, and most of the reader's comments were to try Preact to get default optimization. So I decided to try preact with the same app used for the previous article. Let's first get an intro about Preact.
  • 🥑 Put your React on a diet
    4 projects | | 21 Oct 2021
    For a long time I heard people complaining that React & ReactDOM has a huge size, and everyone recommended to use Preact instead.
  • JavaScript Framework TodoMVC Size Comparison
    3 projects | | 14 Oct 2021
    I decided to take his process and methodology and apply it in addition to Preact, React, and Solid. So let's begin.


Posts with mentions or reviews of react-native. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-11.

What are some alternatives?

When comparing Preact and react-native you can also consider the following projects:

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

Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time

Mithril.js - A JavaScript Framework for Building Brilliant Applications

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.

Electron - :electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

capacitor - Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️

inferno - :fire: An extremely fast, React-like JavaScript library for building modern user interfaces

Titanium - 🚀 Native iOS- and Android- Apps with JavaScript

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

riot - Simple and elegant component-based UI library

spine - Lightweight MVC library for building JavaScript applications

Ionic Framework - A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.