react-canvas VS Preact

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


High performance <canvas> rendering for React components (by Flipboard)


⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. (by preactjs)
Our great sponsors
  • Syncfusion - See why our products are consistently getting 4.6 out of 5 stars by your peers.
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
react-canvas Preact
4 33
12,737 30,087
0.3% 1.2%
0.0 8.6
almost 3 years ago 6 days ago
JavaScript JavaScript
BSD 3-clause "New" or "Revised" 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.


Posts with mentions or reviews of react-canvas. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-12.
  • Google Docs will move to canvas based rendering instead of DOM | 2021-05-12
    I remember Flipboard using canvas to render their UI before using react, which has the same idea, you can look at the repo and their post about it:

  • Using KonvaJS as canvas with React | 2021-03-25
    React Canvas
  • Is it possible on react native ???
    You can also try using Canvas element in react
  • Any js game library where I can use react ? | 2021-03-02
    I'm confused, there is react-canvas. Does it just not work very good?


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 2021-10-14.
  • JavaScript Framework TodoMVC Size Comparison | 2021-10-14
    I decided to take his process and methodology and apply it in addition to Preact, React, and Solid. So let's begin.
  • Build an Embeddable Widget using Preact and the Shadow DOM | 2021-10-13
    As we added 3rd party libraries, our bundle size grew. We found that Preact was a good solution to this problem. It provides all the same features as React, but in a much smaller package. You can compare the unpacked size of Preact to a combined React and React-DOM and see a significant difference!
  • Reactive Clojure: You don't need a web framework, you need a web language | 2021-09-23
    Preact is React without the fluff -

    loc in a node project is hard to judge due to packages and the aforementioned mono repo difference, but the preact functional build artefact is an order of magnitude smaller: | 2021-09-23
  • I smashed a bug and I liked it | 2021-09-20
    I'm not a Ruby on Rails or Preact person. But after reading the Forem docs, I got interested in both ecosystems. And the best way to dive deeper into the language or the framework is to write something in it. So I decided to roll out the Forem platform build locally and try to make something with it. I started from the second step ("What?") to incentivize the first one ("How?") for myself better.
  • Building an image processing pipeline with Fauna's streaming | 2021-09-08
    For our front end we will be using Preact, a fast and small React-like library. We'll also be using Htm by the same author so that we can use JSX without having to configure a build setup.
  • Where can I learn to properly store an API key on the backend of Create-React-App? | 2021-08-16
    There's a lot of libraries in between of course, and make for great exploration targets. Things like Preact offer a better React experience by mimicking the React API but with far better perf and bundle size. Other tools that offer more exotic APIs, if you're up learn something completely new. Point is, there's options.
  • Error handling for production application in Preact | 2021-07-29
    Preact is a great alternative to React. It is made for creating modern Web Application and weights a ton less than a React application.
  • Windows 11, but for Web | 2021-07-22
  • Preact, Vite, & Docker Compose in 5 easy steps | 2021-07-06
    You can now build your next awesome Preact application using the awesome Vite bundler running anywhere with Docker Compose.

What are some alternatives?

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

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

Mithril.js - A JavaScript Framework for Building Brilliant Applications

Konva - Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.

React Konva - React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.

riot - Simple and elegant component-based UI library

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

hyperapp - The tiny framework for building hypertext applications.

react-native - A framework for building native applications using React

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.

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

x-spreadsheet - A web-based JavaScript(canvas) spreadsheet