A JavaScript library for high-performance user interfaces with a React-like API, usable on the client and server.
Overview
Inferno is a JavaScript library for building user interfaces with a component model, one-way data flow, and lifecycle behavior similar to React. It targets fast runtime performance, including large DOM trees and views that update with live data.
It supports isomorphic rendering on both browser and server through inferno-server, JSX via a dedicated Babel plugin, fragments, refs, and portals. Functional components can receive lifecycle callbacks, and form controls can be implemented as controlled components for inputs, selects, and text areas.
The event layer is only partly synthetic: selected events such as clicks are delegated for cross-browser behavior, while other events follow native DOM naming (for example input rather than change for text fields). Utilities include linkEvent for attaching data to handlers without extra bindings, createRenderer for reactive integrations, and optional packages for Redux, MobX, and animation.
Inferno is aimed at the DOM in browsers and on the server; it does not support React Native. Compatibility with existing React code paths is available through inferno-compat, with documented differences around events, refs, and style syntax.
Key features
- React-like component API
- Client and server isomorphic rendering
- Partial synthetic event delegation
- Controlled form components
- Functional component lifecycle hooks
- JSX compile-time optimizations
- linkEvent handler helper
- createPortal for out-of-tree UI
Use cases
- High-frequency DOM updates
- Isomorphic JavaScript applications
- Migrating React apps with inferno-compat
- Lightweight functional components
- Large real-time data views