| Features | - 3 KB
- React-compatible API with hooks
- preact/compat for React components
- no build step required
- batched updates
| - LitElement base class for native custom elements
- reactive properties and attributes that trigger efficient re-renders
- styles scoped with Shadow DOM
- declarative templates with tagged template literals (lit-html)
- about 5 KB minified and compressed
- TypeScript decorators or plain JavaScript
- @lit/localize, @lit/context, @lit/task and @lit/react packages
- labs packages for server-side rendering (@lit-labs/ssr), routing, motion and signals
- All 9 features
| - compiler that turns components into optimized JavaScript
- runes for reactivity ($state, $derived, $effect, $props)
- scoped styles by default
- built-in transitions and animations
- TypeScript support
- custom elements output
- server-side rendering
| - declarative templates that extend HTML
- reactive state with compiler-optimized rendering
- Single-File Components (.vue files)
- Options API and Composition API
- server-side rendering and static site generation
- use without a build step from a CDN
- custom elements (Web Components) support
- TypeScript support
|