A TodoMVC implementation built with
WebSharper and WebSharper.UI — a reactive
ListModel of entries with hash routing for the
All / Active / Completed filters.
- A reactive
ListModel<int, TodoItem>rendered withDoc.BindListModelLens, so individual entries update without re-rendering the list. - Per-entry toggling, inline editing (double-click), and removal.
- Filtering via
RouteMapand hash routing (#,#active,#completed). - A single HTML template (
src/wwwroot/index.html) loaded withClientLoad.FromDocumentand bound with.Bind().
For the Model-View-Update take on the same app, see the WebSharper.Mvu TodoMVC.
dotnet run --project src
Then open http://localhost:5280.
dotnet build src/TodoMVC.fsproj -c Release
WebSharper compiles the client and esbuild bundles
it into src/wwwroot/Scripts for Release.
Every push to master builds in Release and publishes src/wwwroot to the
gh-pages branch via .github/workflows/deploy.yml.
