React, etc. Tech Stack

React, Flux, GraphQL, Hack, HHVM...? All of this and more!

Facebook's Relay and how it relates to Flux and React

The technical preview of Facebook's Relay was launched early this week. It is fully Open Source and available on Github today. But what exactly is Relay and how does it relate to React and Flux?

In 2013 Facebook released React, a JavaScript tool that helps developers create complex user interfaces with high performance dynamic updates and independent components. In 2014 Facebook released Flux, a tool to keep track of the state on client side. In 2015 they completed the trio with Relay, a library that handles communications with the persistent storage (i.e. a remote server).

Here is a rundown of the Facebook JavaScript Clientside development stack:

All of these different items have specific roles and each of them can be replaced. Flux, for example has multiple competing implementations, such as Redux. They are well decouped an in traditional Facebook development team tradition, Relay is already dogfooded and in production on

The development team lists the following future focus areas and possibilities

Together with these improvements and React Native, Facebook is merging tools for native application and web application development. Read more on the blog post introducting Relay to the world

Written by Jorgé on Sunday August 16, 2015

Permalink - Tags: relay, javascript, flux, react

« React developer toolbar for Firefox and Chrome - Twitter Launches Bootstrap 4 Alpha, the next version of the popular Front End Framework »