| Features | - 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 components
- component state
- JSX
- server rendering
- gradual adoption
- React Native for mobile
| - 3 KB
- React-compatible API with hooks
- preact/compat for React components
- no build step required
- batched updates
|