Is Facebook written in React

React: New Facebook website relies entirely on Javascript

The surface of the Facebook website has been completely rewritten by the responsible development team, as those involved write in their engineering blog. The JavaScript library React, originally created by Facebook itself, and the GraphQL client Relay for React are now used.

  1. DRÄXLMAIER Group, Vilsbiburg near Landshut
  2. Konstanz University of Applied Sciences, Constance

The complete rewrite of such a large and widely used website can definitely be described as unusual. As the team writes, when the social network launched in 2004, Facebook.com was a simple server-side rendered PHP website. Since then, however, new layers have been added for new technologies, which have always been harder to maintain and have also made adding new functions more and more complicated.

From the point of view of Facebook, the rewriting of the website has also become necessary so that the many and modern web technologies that the team has envisioned for the new page can be used. Above all, this means that they should be particularly interactive and feel like an app.

It is hardly surprising that the Facebook developers chose React. The JavaScript library was created in the company in 2011 and has been available as open source since 2013. With React Native, the company also uses a framework derived from it for the development of its mobile apps, such as for Android and iOS.

  1. Penetration Testing Fundamentals
    23-24 September 2021, online
  2. Introduction to programming with Rust
    21.-24. September 2021, online
Further IT training

The fact that PHP is not used is not surprising either. The developers write that they are not convinced that it can be used as pleasantly as with client-side apps. On the server side, too, Facebook is increasingly doing without PHP. The in-house PHP alternative HHVM, for example, only supports the Hack language and no longer supports PHP as was originally the case.