Fitz framework achieves dual-target UI: same components run on server and browser
The Fitz framework's companion UI library, previously limited to server-side rendering, now compiles all 38 components to both server-rendered HTML and client-side WebAssembly using a single source file. Developers can switch compilation targets via a compiler flag rather than maintaining separate codebases for server and client. Three core technical barriers were resolved: raw HTML injection for SVG icons, support for list-driven components like Select and BarChart, and local list construction inside helper functions. Two additional components, Pager and ConfirmDialog, required a new mechanism to handle fall-through events that previously had no meaning in a browser-only context. The live gallery now runs 22 companion components compiled to WebAssembly, with no parallel hand-written client versions needed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in