Reactor.Maui.HotReload
5.0.0-beta.1
dotnet add package Reactor.Maui.HotReload --version 5.0.0-beta.1
NuGet\Install-Package Reactor.Maui.HotReload -Version 5.0.0-beta.1
<PackageReference Include="Reactor.Maui.HotReload" Version="5.0.0-beta.1" />
<PackageVersion Include="Reactor.Maui.HotReload" Version="5.0.0-beta.1" />
<PackageReference Include="Reactor.Maui.HotReload" />
paket add Reactor.Maui.HotReload --version 5.0.0-beta.1
#r "nuget: Reactor.Maui.HotReload, 5.0.0-beta.1"
#:package Reactor.Maui.HotReload@5.0.0-beta.1
#addin nuget:?package=Reactor.Maui.HotReload&version=5.0.0-beta.1&prerelease
#tool nuget:?package=Reactor.Maui.HotReload&version=5.0.0-beta.1&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
- Reactor.Maui (>= 5.0.0-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0-beta.1 | 58 | 11/13/2026 |
| 4.0.19 | 242 | 10/24/2026 |
| 4.0.18 | 1,380 | 4/28/2026 |
| 4.0.17 | 226 | 4/12/2026 |
| 4.0.16 | 689 | 2/17/2026 |
| 4.0.15 | 324 | 2/17/2026 |
| 4.0.14 | 170 | 2/17/2026 |
| 4.0.13 | 207 | 2/5/2026 |
| 4.0.12-beta | 145 | 1/25/2026 |
| 4.0.11-beta | 168 | 1/5/2026 |
| 4.0.10-beta | 167 | 12/29/2025 |
| 4.0.9-beta | 181 | 12/13/2025 |
| 4.0.8-beta | 178 | 12/12/2025 |
| 4.0.7-beta | 173 | 12/12/2025 |
| 4.0.6-beta | 165 | 12/12/2025 |
| 4.0.5-beta | 171 | 12/12/2025 |
| 4.0.4-beta | 181 | 12/11/2025 |
| 4.0.3-beta | 463 | 11/30/2025 |
| 3.0.40 | 431 | 12/17/2025 |
| 0.0.1-beta | 476 | 11/30/2025 |