Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Preact
Preact

62
69
+ 1
19
Relay
Relay

111
102
+ 1
1
Add tool

Preact vs Relay: What are the differences?

Developers describe Preact as "A fast 3k React alternative". Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped). On the other hand, Relay is detailed as "A JavaScript Framework for Building Data-Driven React Applications, by Facebook". Never again communicate with your data store using an imperative API. Simply declare your data requirements using GraphQL and let Relay figure out how and when to fetch your data.

Preact and Relay belong to "Javascript UI Libraries" category of the tech stack.

Preact and Relay are both open source tools. Preact with 22.9K GitHub stars and 1.19K forks on GitHub appears to be more popular than Relay with 13K GitHub stars and 1.28K GitHub forks.

Facebook, ZeeMee, and Flexport are some of the popular companies that use Relay, whereas Preact is used by Resource Guru, Bustle, and VN2RAP. Relay has a broader approval, being mentioned in 39 company stacks & 7 developers stacks; compared to Preact, which is listed in 9 company stacks and 4 developer stacks.

What is Preact?

Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped).

What is Relay?

Never again communicate with your data store using an imperative API. Simply declare your data requirements using GraphQL and let Relay figure out how and when to fetch your data.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Preact?
Why do developers choose Relay?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
      Be the first to leave a con
      What companies use Preact?
      What companies use Relay?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Preact?
      What tools integrate with Relay?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to Preact and Relay?
      React
      Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
      Inferno
      Inferno is an isomorphic library for building high-performance user interfaces, which is crucial when targeting mobile devices. Unlike typical virtual DOM libraries like React, Mithril, Virtual-dom, Snabbdom and Om, Inferno uses techniques to separate static and dynamic content. This allows Inferno to only "diff" renders that have dynamic values.
      Glimmer
      Glimmer is one of the fastest DOM rendering engines, delivering exceptional performance for initial renders as well as updates.
      Mithril
      Mithril is around 12kb gzipped thanks to its small, focused, API. It provides a templating engine with a virtual DOM diff implementation for performant rendering, utilities for high-level modelling via functional composition, as well as support for routing and componentization.
      jQuery
      jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
      See all alternatives
      Decisions about Preact and Relay
      No stack decisions found
      Interest over time
      Reviews of Preact and Relay
      No reviews found
      How developers use Preact and Relay
      Avatar of Parabol, Inc.
      Parabol, Inc. uses RelayRelay

      Before relay-modern, we wrote our own subscriptions-capable GraphQL client + cache called Cashay. We switched to relay-modern when its functionality and community surpassed our own

      Avatar of Cirrus Labs
      Cirrus Labs uses RelayRelay

      Relay is used to minimize client-side logic on https://cirrus-ci.com/

      How much does Preact cost?
      How much does Relay cost?
      Pricing unavailable
      Pricing unavailable
      News about Preact
      More news
      News about Relay
      More news