MauiReactor is a MVU UI framework built on top of .NET MAUI
MauiReactor is a MVU UI framework 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
{
public override VisualNode Render()
=> ContentPage("Counter Sample",
VStack(
Label($"Counter: {State.Counter}"),
Button("Click To Increment", () =>
SetState(s => s.Counter++))
)
.Spacing(10)
.Center()
);
}dotnet new install Reactor.Maui.TemplatePackdotnet tool install -g Reactor.Maui.HotReloadConsoleIf you already installed an old version of Reactor.Maui.HotReload, you can update it to the latest using this command (NOTE: this has changed from version 3 to version 4):
dotnet tool update -g Reactor.Maui.HotReloadConsoledotnet new maui-reactor-startup -o my-new-projectand move inside the new project folder
cd .\my-new-project\dotnet build -t:Run -f net10.0-androidUnder Mac, to target an iOS device/emulator, issue a command like this:
dotnet build -t:Run /p:_DeviceName=:v2:udid= -f net10.0-ioswhere the device id comes from this list:
xcrun simctl listdotnet-maui-reactor -f [net10.0-android|net10.0-ios|...]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
No open issues yet, or sync has not completed.