Reactor.Maui
5.0.0-beta.2
dotnet add package Reactor.Maui --version 5.0.0-beta.2
NuGet\Install-Package Reactor.Maui -Version 5.0.0-beta.2
<PackageReference Include="Reactor.Maui" Version="5.0.0-beta.2" />
<PackageVersion Include="Reactor.Maui" Version="5.0.0-beta.2" />
<PackageReference Include="Reactor.Maui" />
paket add Reactor.Maui --version 5.0.0-beta.2
#r "nuget: Reactor.Maui, 5.0.0-beta.2"
#:package Reactor.Maui@5.0.0-beta.2
#addin nuget:?package=Reactor.Maui&version=5.0.0-beta.2&prerelease
#tool nuget:?package=Reactor.Maui&version=5.0.0-beta.2&prerelease
MauiReactor
Component-based UI Library built on top of .NET MAUI
MauiReactor is .NET library written on top of .NET MAUI that allows you to write applications in pure C# using an MVU approach.
This is the classic Counter app in MauiReactor:
class CounterPageState
{
public int Counter { get; set; }
}
class CounterPage : Component<CounterPageState>
{
public override VisualNode Render()
=> ContentPage("Counter Sample",
VStack(
Label($"Counter: {State.Counter}"),
Button("Click To Increment", () =>
SetState(s => s.Counter++))
)
.Spacing(10)
.Center()
);
}
Versions
| Version | .NET / MAUI | Status | Branch |
|---|---|---|---|
| MauiReactor 5 | .NET 11 / MAUI 11 | Beta | main |
| MauiReactor 4 | .NET 10 / MAUI 10 | Stable, maintained | version-4 |
What's new in MauiReactor 5 (beta)
- .NET 11 / MAUI 11: apps run on CoreCLR on Android, iOS and Mac Catalyst. The minimum Android version is now API 24 (Android 7.0), as required by .NET 11.
- Hooks: a new, lighter way to write components. There's no state class and no
SetStateround trip:
Also available:class CounterPage : HookComponent { public override VisualNode Render() { var (counter, setCounter) = UseState(0); return ContentPage("Counter Sample", VStack( Label($"Counter: {counter}"), Button("Click To Increment", () => setCounter(counter + 1)) ) .Spacing(10) .Center() ); } }UseReducer,UseRef,UseEffectandUseMemo. Hook state is preserved across hot reload, and a built-in analyzer reports hooks that are called conditionally, in loops or outsideRender().Component<TState>still works as before. - New MAUI 11 features:
LongPressGestureRecognizer, badges on Shell items and toolbar items,BoxView.Fill,Window.StatusBarTheme,SwipeItemtext/icon colors, and the new Maps clustering, styling and click events. - Keyed children:
WithKey(...)is now honoured when a list is reordered, so component state and native controls move with their item.
⚠️ iOS / Mac Catalyst navigation needs testing. MAUI 11 moved
NavigationPage,TabbedPageandFlyoutPageto a new handler architecture on iOS and Mac Catalyst, andAppearingnow fires before a page is pushed. MauiReactor's navigation relies on these events, so please test push/pop, modal navigation and Shell navigation on iOS and open an issue if anything behaves differently from MauiReactor 4.
Setting up MauiReactor from CLI
The steps below use MauiReactor 5 (beta). For MauiReactor 4, omit the version/--prerelease options and use net10.0-* target frameworks.
- Install MauiReactor templates
dotnet new install Reactor.Maui.TemplatePack::5.0.0-beta.1
- Install the MauiReactor hot reload console command (its version should match the Reactor.Maui package used by your app)
dotnet tool install -g Reactor.Maui.HotReloadConsole --prerelease
If you already have it installed, update it with:
dotnet tool update -g Reactor.Maui.HotReloadConsole --prerelease
- Create a sample project
dotnet new maui-reactor-startup -o my-new-project
and move inside the new project folder
cd .\my-new-project\
- Build & run the project (emulator or device must be running and configured)
dotnet build -t:Run -f net11.0-android
Under Mac, to target an iOS device/emulator, issue a command like this:
dotnet build -t:Run /p:_DeviceName=:v2:udid=<device_id> -f net11.0-ios
where the device id comes from this list:
xcrun simctl list
- Hot-reload console (in a different shell)
dotnet-maui-reactor -f [net11.0-android|net11.0-ios|...]
- Edits to code should be hot-reloaded by the application --> Enjoy!
Documentation
Videos
Introductionary video from Solution1 conference
Interview with James Montemagno
Getting started video from Gerald Versluis
MauiReactor .NET MAUI UI July - 2024 Contribution - Task Manager App
Sample Applications
Star history
How to contribute
- Star the repository!
- File an issue (Issues)
- Fix bugs, add features, or improve the code with PRs
- Help with the documentation (Documentation Repo)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. net11.0-android37.0 is compatible. net11.0-ios27.2 is compatible. net11.0-maccatalyst27.2 is compatible. net11.0-windows10.0.19041 is compatible. |
-
net11.0
- Microsoft.Maui.Controls (>= 11.0.10)
-
net11.0-android37.0
- Microsoft.Maui.Controls (>= 11.0.10)
-
net11.0-ios27.2
- Microsoft.Maui.Controls (>= 11.0.10)
-
net11.0-maccatalyst27.2
- Microsoft.Maui.Controls (>= 11.0.10)
-
net11.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 11.0.10)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Reactor.Maui:
| Package | Downloads |
|---|---|
|
Reactor.Maui.HotReload
MauiReactor.HotReload is the hot-reload plugin library for MauiReactor which is an MVU library (heavily inspired to ReactJS and Flutter) written on top of Microsoft Maui Controls. |
|
|
Reactor.Maui.Canvas
MauiReactor.CanvasKit is MauiReactor plugin that let you author custom controls using drawing commands in a declarative approach (similar to react-native-skia). |
|
|
Reactor.Maui.Maps
MauiReactor.Maps is a MauiReactor plugin for the MAUI Maps Control. |
|
|
Reactor.Maui.Blazor
MauiReactor.Blazor is MauiReactor plugin that let you add BlazorWebView in your MauiReactor application. |
|
|
Rearch.Reactor
A re-imagined declarative approach to application design and architecture. C# port of [rearch-dart](https://github.com/GregoryConrad/rearch-dart/). |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Reactor.Maui:
| Repository | Stars |
|---|---|
|
DevTeam/Pure.DI
Pure DI for .NET
|
|
|
adospace/rive-app
Sample application build with MauiReactor showing a nice UI (.NET MAUI implementation of https://designcode.io/swiftui-rive-animated-app)
|
|
|
adospace/mauireactor-samples
Demo apps built using MauiReactor
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 5.0.0-beta.2 | 68 | 11/27/2026 | |
| 5.0.0-beta.1 | 150 | 11/13/2026 | |
| 4.0.19 | 454 | 10/24/2026 | |
| 4.0.18 | 3,347 | 4/28/2026 | |
| 4.0.17 | 305 | 4/12/2026 | |
| 4.0.16 | 1,416 | 2/17/2026 | |
| 4.0.15 | 416 | 2/17/2026 | |
| 4.0.14 | 213 | 2/17/2026 | |
| 4.0.13 | 248 | 2/5/2026 | |
| 4.0.12-beta | 183 | 1/25/2026 | |
| 4.0.11-beta | 216 | 1/5/2026 | |
| 4.0.10-beta | 192 | 12/29/2025 | |
| 4.0.9-beta | 210 | 12/13/2025 | |
| 4.0.8-beta | 314 | 12/12/2025 | |
| 4.0.7-beta | 196 | 12/12/2025 | |
| 4.0.6-beta | 200 | 12/12/2025 | |
| 4.0.5-beta | 182 | 12/12/2025 | |
| 4.0.4-beta | 203 | 12/11/2025 | |
| 4.0.3-beta | 533 | 11/30/2025 | |
| 3.0.40 | 5,962 | 12/17/2025 |