Paul Krill
Editor at Large

Facebook’s React JavaScript library faces a new challenger

news
Jan 5, 20172 mins

The small, lightweight Inferno library offers a major speed boost as well as server-side render streams, better real-world performance, and lower memory consumption

fire flames
Credit: Little Visuals

A new rival has emerged to take on Facebook’s React JavaScript library for building UIs: Inferno, designed to be a lightweight and “blazing fast React-like JavaScript library” for building modern interfaces.

“Inferno is considerably faster than React,” says the project’s web page. “This doesn’t apply to only benchmarks, but real-world applications that companies have converted to Inferno from React.” The library also is only 9KB, which means it parses faster, particularly on mobile devices.

Inferno has a React-compatible API and can use React tools extensions for Chrome and Firefox. It has a partially synthetic event system, opting to only delegate certain events, such as onClick.

The goal with Inferno is to provide all the benefits of React, plus other features for people already familiar with the React ecosystem, including lifecycle events on functional components, server-side render streams, better real-world performance, lower memory consumption, and faster parse/load times, according to the project’s GitHub repo. “Furthermore, Inferno allows people to switch their existing React projects to Inferno in a few lines of code using inferno-compat.”

In developing Inferno, builders were seeking a UI library that could improve experience, battery, memory usage, and performance on mobile devices. Instead of using MVC/MVVM style patterns, Inferno uses a component-based approach in which data flows in one direction. This makes coding predictable, reusable, and highly testable, proponents said. “You literally write JavaScript to state how you’d like your UI to look — Inferno does all the rest.”

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author