Ashlar vs. React
Compare W3C DOM attribute reactivity against React hooks, JSX compilation, hydration mismatches, and npm dependency sprawl for admin portals.
Ashlar trades an in-memory Virtual DOM component tree for a real W3C DOM control plane backed by autonomous vanilla JS components, an IndexedDB local-first store, and a decoupled CSS layer (built-in SCSS design system, or bring Tailwind, Bootstrap, or custom CSS). Review the full CTO matrix and honest trade-offs before picking a stack.
Compare W3C DOM attribute reactivity against React hooks, JSX compilation, hydration mismatches, and npm dependency sprawl for admin portals.
See how Ashlar enforces 3-layer separation, CQS, and closed error taxonomies for corporate portals without CLI schematics, DI, or RxJS churn.
Direct side-by-side comparison from Ashlar’s architectural specification.
| Category | Angular | React | Vue | Ashlar (ln-ashlar) |
|---|---|---|---|---|
| Architecture Paradigm | Full framework, opinionated | JS-First, component tree | Lightweight component system | DOM-First, HTML-Centric |
| UI Rendering Model | Template-driven change detection | Virtual DOM reconciliation | Virtual DOM + compiler-optimized patches | Direct W3C DOM control (data-ln-*) |
| State Management | Signals, Services, RxJS, NgRx | Component state, Context, Redux / Zustand | Reactivity API, Pinia | DOM attributes (data-ln-*) + IndexedDB store |
| UI Ecosystem | Large, monolithic | Massive ecosystem | Large ecosystem | Modular, unbundled autonomous components |
| Architectural Complexity | Very High | Medium-High | Low-Medium | Low (pure Web APIs) |
| AI-Agent Suitability | Low (complex DI & RxJS) | Low (complex hooks/closures) | Moderate (template compiler) | High (Native HTML Contracts + MCP) |
| Runtime Performance | Strong (compiled templates / Signals) | Strong (VDOM reconciliation) | Strong (compiler-informed VDOM) | Direct DOM updates (no VDOM diffing) |
| SSR & Hydration | CSR default; SSR/SSG optional (hydrates for SSR) | CSR via createRoot; SSR optional (hydrates via hydrateRoot) |
CSR default; SSR optional (hydrates for SSR) | Native server HTML / progressive enhancement (not required) |
| Supply-Chain Security | Framework + CLI dependency tree | Ecosystem-dependent npm tree | Moderate npm dependency tree | Minimal runtime surface (0 runtime npm deps) |
| Long-Term Longevity | 12-month major cycle / 24-month support window | Paradigm & ecosystem shifts | Major version transitions (e.g. Vue 2 → 3) | Built on permanent W3C browser APIs |
| Learning Curve | Steep (TypeScript/DI/RxJS) | Moderate (Hooks/JSX) | Gentle | Gentle (HTML/CSS/JS) |
| Tooling Footprint | Massive CLI / Heavy | Massive build pipelines | Moderate CLI | Minimal / Pure Browser |
| Debugging Control | Framework DevTools | Framework DevTools | Framework DevTools | Native Browser Inspector |
| Machine Documentation | Complex human docs | Massive human docs | Good human docs | Machine-readable (MCP / Schemas) |
| Runtime Dependencies | Angular runtime + ecosystem | React runtime + ecosystem | Vue runtime + ecosystem | 0 runtime npm packages |
| Build Process | Angular CLI / TypeScript required | Build step typical (JSX / bundler) | Optional via CDN; build typical (SFCs) | Optional (prebuilt IIFE/CSS or bundler) |
| Optimal Persona | Enterprise TypeScript Teams | SPA Teams | Small SPA Teams | HTML/CSS/JS + AI Coding Agents |
HTMX and Alpine.js stay lightweight by leaving styling, complex components, and offline caching to external libraries. Ashlar ships the complete stack with strict Content-Security-Policy safety.
| Capability | HTMX | Alpine.js | Ashlar (ln-ashlar) |
|---|---|---|---|
| Primary Mechanism | Server HTML fragment swaps | Inline JS expressions in x-* attributes |
data-ln-* state attributes + bubbling CustomEvents |
| CSS Design System | None included | None included | Built-in SCSS design system + 3-axis theming (or swap in Tailwind, Bootstrap, or custom CSS) |
| UI & Data Components | None included | None included (headless DIY) | Autonomous UI & data components (table, modal, validate, chart, upload, and more) |
| Offline-First SPA Runtime | Server-roundtrip dependent | In-memory state | ln-router + IndexedDB ln-data-store + FIFO ln-api-queue |
| Strict CSP Compliance | Yes (with config) | Requires CSP build for expression eval | Zero eval() or inline JS expressions by design |
Every architecture trades one class of complexity for another. These are Ashlar’s real costs alongside its wins.
Authoritative, server-renderable HTML with zero hydration mismatch
Teleport-safe wiring via element id and bubbling events
Zero runtime npm supply-chain dependencies
Closed write error taxonomy (auth, transient, deterministic) with FIFO offline queue
ln-debug checks attribute wiring at runtime, not at compile time.
No auto-tracked signal/memo graph or Redux time-travel log.
SPA mode clones <template> prototypes rather than parameterized JSX.
Canvas graphics editors, 3D engines, and real-time collaborative cursors.
Test the full component library in the live showcase or dive into our React and Angular comparisons.