over_react
5.8.0, released 8 weeks ago by workiva.com
A library for building statically-typed React UI components using Dart.
What it does
OverReact is a library built atop the Dart react package that helps developers create statically-typed React UI components and applications using Dart. It provides core abstractions like UiFactory, UiProps, UiState, and UiComponent2 to mirror the React JS component model.
AI-written summary of version 5.8.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building web applications in Dart that interop with React JS.
- You prefer writing React UI components with static typing and builder patterns in Dart.
Skip it when
- You are building native Flutter mobile or desktop applications.
- You do not want to use code generation and build_runner for your web components.
Strengths
- Statically-typed props and state maps for React components in Dart.
- Provides migration paths from older boilerplate and component architectures.
- Includes support for Redux integration and an analyzer plugin for lints.
Weaknesses
- Requires build_runner and code generation setup.
- Tied to the React ecosystem and web targets rather than native Flutter widgets.
Setup
- Kind
- Pure Dart
- Effort
- High
- Code generation
- Yes (build_runner)
- Direct dependencies
- 16
Add over_react as a dependency, enable the analyzer plugin, include native JavaScript react and react_dom libraries in your index.html, run tests and code generation using build_runner.
import 'dart:html';
import 'package:over_react/react_dom.dart' as react_dom;
import 'package:over_react/over_react.dart';
main() {
react_dom.render(
Foo()(),
querySelector('#react_mount_point'),
);
}Alternatives
Packages that do the same job and could replace over_react.
- nocterm
Framework for building terminal user interfaces with Flutter‑like components and hot reload.
79Compare - diagram_editor
Flutter library for building interactive diagram editors with pan, zoom, and link support
61Compare - tap_builder
A simple widget for building interactive areas with customizable visual effects.
50Compare
Works with
Packages commonly used together with over_react: ones it builds on, ones built on it, and its own family.
- analyzerover_react depends on itPerforms static analysis of Dart code for tool integration and embedding.
- package_configover_react depends on itRead and write Dart package configuration files.
- source_spanover_react depends on itStandard representation for source code locations, spans, and human-friendly error messages.
- loggingover_react depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- buildover_react depends on itPackage for authoring build_runner compatible code generators.
- quiverover_react depends on itA set of utility libraries for Dart containing collections, async tools, and testing helpers.
- platform_detectover_react depends on itDetects browser and OS types and versions in Dart web apps.
- reduxover_react depends on itPredictable state container for Dart and Flutter using Redux pattern.