uhtml is a minimal JavaScript library for building fast, reactive HTML and SVG interfaces with standard web platform features. It uses tagged template literals to provide a JSX-inspired syntax without requiring a compiler or specialized build tools. Components can be written as regular functions and connected to reactive state through signals, computed values, effects, batching, and untracked reads. The renderer supports keyed nodes, references, fragments, event handlers, boolean attributes, direct property updates, and object spreading. It also integrates with native custom elements and simplifies accessibility and dataset management through dedicated aria and data attributes. Development builds include runtime diagnostics that help identify malformed templates while production builds remain focused on compact rendering.
Features
- HTML and SVG tagged templates
- Function-based reactive components
- Signals, computed values, and effects
- Keyed nodes, references, and fragments
- Event, property, and boolean attribute bindings
- Native custom element compatibility