# Fine-grained client reactivity

Feature 10 of 14, in the group "Other features". Labels across 23 meta-frameworks: 22 1st-party, 0 Experimental, 0 Third-party, 1 Manual.

## What it is and why it matters

Fine-grained reactivity limits how much work a state change causes, so only the parts of the UI that read the changed value update. Solid, Svelte, and Marko go furthest and write straight to the affected DOM nodes; Vue and Angular update at component granularity (Vue diffs a compiler-optimised virtual DOM); Qwik falls back to a vDOM for structural changes. React gets there with the first-party [React Compiler](https://react.dev/learn/react-compiler), which memoizes components, values, and JSX at build time so a state change skips the parts of the tree whose inputs did not change. This is an interaction-cost property, not a first-paint one: in principle it shows up in INP and memory on long-lived pages.

## Gotchas

- The React Compiler is opt-in for every React framework here: nothing changes until you add it to the build.
- This row says nothing about first paint; do not read it as a loading-speed feature.

## Labels

| Framework | Label | Points |
| --- | --- | --- |
| [Next](https://framework-compare.vercel.app/frameworks/next.md) | 1st-party | 2 |
| [Nuxt](https://framework-compare.vercel.app/frameworks/nuxt.md) | 1st-party | 2 |
| [SvelteKit](https://framework-compare.vercel.app/frameworks/sveltekit.md) | 1st-party | 2 |
| [SolidStart](https://framework-compare.vercel.app/frameworks/solidstart.md) | 1st-party | 2 |
| [TanStack Start (React)](https://framework-compare.vercel.app/frameworks/tanstack-start-react.md) | 1st-party | 2 |
| [TanStack Start (Solid)](https://framework-compare.vercel.app/frameworks/tanstack-start-solid.md) | 1st-party | 2 |
| [Pracht](https://framework-compare.vercel.app/frameworks/pracht.md) | 1st-party | 2 |
| [Waku](https://framework-compare.vercel.app/frameworks/waku.md) | 1st-party | 2 |
| [Ember](https://framework-compare.vercel.app/frameworks/ember.md) | 1st-party | 2 |
| [Astro](https://framework-compare.vercel.app/frameworks/astro.md) | 1st-party | 2 |
| [React Router](https://framework-compare.vercel.app/frameworks/react-router.md) | 1st-party | 2 |
| [Qwik City](https://framework-compare.vercel.app/frameworks/qwik-city.md) | 1st-party | 2 |
| [Angular (SSR)](https://framework-compare.vercel.app/frameworks/angular.md) | 1st-party | 2 |
| [Marko](https://framework-compare.vercel.app/frameworks/marko.md) | 1st-party | 2 |
| [Fresh](https://framework-compare.vercel.app/frameworks/fresh.md) | 1st-party | 2 |
| [Analog](https://framework-compare.vercel.app/frameworks/analog.md) | 1st-party | 2 |
| [Vike](https://framework-compare.vercel.app/frameworks/vike.md) | 1st-party | 2 |
| [RedwoodSDK](https://framework-compare.vercel.app/frameworks/redwoodsdk.md) | 1st-party | 2 |
| [Remix 3](https://framework-compare.vercel.app/frameworks/remix.md) | Manual | 0 |
| [Void (React)](https://framework-compare.vercel.app/frameworks/void-react.md) | 1st-party | 2 |
| [Void (Vue)](https://framework-compare.vercel.app/frameworks/void-vue.md) | 1st-party | 2 |
| [Void (Svelte)](https://framework-compare.vercel.app/frameworks/void-svelte.md) | 1st-party | 2 |
| [Void (Solid)](https://framework-compare.vercel.app/frameworks/void-solid.md) | 1st-party | 2 |

## How to enable it in each framework

### Next

Label: **1st-party** (2 of 2 points).

The first-party [React Compiler](https://react.dev/learn/react-compiler), switched on with [`reactCompiler: true`](https://nextjs.org/docs/app/api-reference/config/next-config-js/reactCompiler) (stable since v16.0.0; enabled in this port). Next runs it through the Babel plugin, applied only to files with JSX or hooks; Next 16.4 also has an experimental native Rust build of the compiler, `experimental.turbopackRustReactCompiler: true`, used alongside `reactCompiler: true`.

```ts
const nextConfig: NextConfig = {
  reactCompiler: true,
};
```

*From this repo's `next-books/next.config.ts` (other options omitted).*

Gotchas:

- The native Rust build of the React Compiler (`experimental.turbopackRustReactCompiler`) is experimental in Next 16.4; the stable path runs the Babel plugin.

### Nuxt

Label: **1st-party** (2 of 2 points).

Vue's [`ref`/`reactive`](https://vuejs.org/guide/essentials/reactivity-fundamentals) tracks dependencies and updates the affected effects. Nothing to enable.

```ts
const value = ref('');
```

*From this repo's `nuxt-books/app/components/BookSearch.vue` (`optimized` branch).*

### SvelteKit

Label: **1st-party** (2 of 2 points).

[Runes](https://svelte.dev/docs/svelte/what-are-runes) (`$state`, `$derived`, `$effect`). Dependencies are picked up at runtime from whatever a [`$derived`](https://svelte.dev/docs/svelte/$derived) or `$effect` reads, not by compile-time analysis, and `$state` proxies trigger granular updates. Nothing to enable.

```ts
let isOpen = $state(false);
```

*From this repo's `svelte-books/src/lib/features/book/components/MobileBookSidebar.svelte` (`optimized` branch).*

### SolidStart

Label: **1st-party** (2 of 2 points).

[Signals](https://docs.solidjs.com/concepts/reactivity); updates write to the DOM directly without re-running components.

```tsx
const [isOpen, setIsOpen] = createSignal(false);
```

*From this repo's `solid-books/src/components/mobile-book-sidebar.tsx` (`optimized` branch).*

### TanStack Start (React)

Label: **1st-party** (2 of 2 points).

React; the first-party [React Compiler](https://react.dev/learn/react-compiler) is added as a Babel preset to the React Vite plugin. It is not enabled in this port (`vite.config.ts` calls `viteReact()` with no compiler preset).

Example of building it yourself:

Add the React Compiler preset through `@rolldown/plugin-babel` next to `viteReact()`. The compiler memoizes components and hooks at build time, so fewer components re-render when state changes.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact, { reactCompilerPreset } from '@vitejs/plugin-react'
import babel from '@rolldown/plugin-babel'

export default defineConfig({
  plugins: [
    tanstackStart(),
    viteReact(),
    babel({ presets: [reactCompilerPreset()] }),
  ],
})
```

Source: [React: React Compiler installation](https://react.dev/learn/react-compiler/installation)

Gotchas:

- The React Compiler is opt-in: add its Babel preset to the React Vite plugin.

### TanStack Start (Solid)

Label: **1st-party** (2 of 2 points).

[Signals](https://docs.solidjs.com/concepts/reactivity); updates write to the DOM directly (the same `createSignal` shown for SolidStart).

Example of building it yourself:

`createSignal` returns a getter and a setter. Reading `quantity()` in JSX subscribes that text node, so a click updates only that node. The component function does not run again.

```tsx
import { createSignal } from 'solid-js'

export function LineItem() {
  const [quantity, setQuantity] = createSignal(1)
  const price = 12

  return (
    <div>
      <button type="button" onClick={() => setQuantity(quantity() - 1)}>−</button>
      <span>{quantity()}</span>
      <button type="button" onClick={() => setQuantity(quantity() + 1)}>+</button>
      <p>Subtotal: ${quantity() * price}</p>
    </div>
  )
}
```

Source: [Solid: Reactivity](https://docs.solidjs.com/concepts/reactivity)

### Pracht

Label: **1st-party** (2 of 2 points).

Preact; [signals](https://preactjs.com/guide/v11/signals/) are an opt-in `@preact/signals` package from the Preact team, counted as first-party the way Vue's reactivity is for Nuxt; Pracht's own docs do not mention it. This port does not use them, and no code example was found in the docs.

Example of building it yourself:

Install `@preact/signals`. Passing the signal itself into JSX (`{count}`, not `{count.value}`) binds it straight to the text node, so the component does not re-render when it changes.

```tsx
// src/components/counter.tsx
import { signal } from '@preact/signals'

const count = signal(0)

export function Counter() {
  return (
    <div>
      <p>Count: {count}</p>
      <button onClick={() => count.value++}>click me</button>
    </div>
  )
}
```

Source: [Preact: Signals](https://preactjs.com/guide/v11/signals/)

### Waku

Label: **1st-party** (2 of 2 points).

React; the first-party [React Compiler](https://react.dev/learn/react-compiler) is enabled via a Babel preset (on both `main` and `optimized` in this port).

```ts
plugins: [tailwindcss(), react(), babel({ presets: [reactCompilerPreset()] })],
```

*From this repo's `waku-books/waku.config.ts` (`optimized` branch).*

### Ember

Label: **1st-party** (2 of 2 points).

`@tracked` [autotracking](https://guides.emberjs.com/release/in-depth-topics/autotracking-in-depth/).

```js
export default class SidebarService extends Service {
  @tracked isOpen = false;
}
```

*From this repo's `ember-books/app/services/sidebar.js` (`optimized` branch; methods omitted).*

### Astro

Label: **1st-party** (2 of 2 points).

No reactivity of its own in `.astro` components; the official Astro-team integrations `@astrojs/solid-js`, `@astrojs/svelte`, and `@astrojs/vue` (installed with `astro add`) bring Solid signals, Svelte runes, and Vue refs to islands. ([framework-components](https://docs.astro.build/en/guides/framework-components/), [solid-js](https://docs.astro.build/en/guides/integrations-guide/solid-js/), [svelte](https://docs.astro.build/en/guides/integrations-guide/svelte/), [vue](https://docs.astro.build/en/guides/integrations-guide/vue/))

Example of building it yourself:

`.astro` components have no client state. Add a UI framework integration (here Solid via `astro add solid`) and use its signals inside an island.

```tsx
// src/components/Counter.tsx
import { createSignal } from 'solid-js';

export default function Counter() {
  const [count, setCount] = createSignal(0);
  return <button onClick={() => setCount(count() + 1)}>Clicked {count()}</button>;
}
```

```astro
---
// src/pages/index.astro
import Counter from '../components/Counter';
---
<Counter client:load />
```

Source: [Astro: @astrojs/solid-js](https://docs.astro.build/en/guides/integrations-guide/solid-js/)

### React Router

Label: **1st-party** (2 of 2 points).

React-based; the first-party [React Compiler](https://react.dev/learn/react-compiler) is added as a Babel preset to the React Vite plugin (not enabled in this port). v8.4.0 also split internal router contexts to reduce router re-renders. ([react-compiler](https://react.dev/learn/react-compiler), [changelog](https://reactrouter.com/changelog))

Example of building it yourself:

Add the React Compiler's Babel plugin next to `reactRouter()`. The compiler memoizes components and hooks at build time, so fewer components re-render when state changes.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import babel from 'vite-plugin-babel'
import { reactRouter } from '@react-router/dev/vite'

export default defineConfig({
  plugins: [
    reactRouter(),
    babel({
      filter: /\.[jt]sx?$/,
      babelConfig: {
        presets: ['@babel/preset-typescript'],
        plugins: [['babel-plugin-react-compiler', {}]],
      },
    }),
  ],
})
```

Source: [React: React Compiler installation](https://react.dev/learn/react-compiler/installation)

Gotchas:

- The React Compiler is opt-in: add its Babel preset to the React Vite plugin.

### Qwik City

Label: **1st-party** (2 of 2 points).

Signals/stores re-run dependent components; the FAQ says Qwik uses the vDOM "only sometimes" and otherwise updates the DOM directly (non-structural changes). The scope is not detailed. ([faq](https://qwik.dev/docs/faq/), [state](https://qwik.dev/docs/core/state/))

Example of building it yourself:

`useSignal` and `useStore` are tracked. Changing a value updates the parts of the DOM that read it.

```tsx
// src/components/counter/counter.tsx
import { component$, useSignal, useStore } from '@builder.io/qwik'

export const Counter = component$(() => {
  const count = useSignal(0)
  const state = useStore({ name: 'Qwik' })
  return (
    <>
      <button onClick$={() => count.value++}>Increment {count.value}</button>
      <input value={state.name} onInput$={(_, el) => (state.name = el.value)} />
    </>
  )
})
```

Source: [Qwik: State](https://qwik.dev/docs/components/state/)

### Angular (SSR)

Label: **1st-party** (2 of 2 points).

Signals (`signal`, `computed`, `linkedSignal`, `effect`, `resource`) track dependencies dynamically; zoneless is default from v21. The page gives no stability label. ([signals](https://angular.dev/guide/signals), [zoneless](https://angular.dev/guide/zoneless))

Example of building it yourself:

From the Books port's cover component: `input()` and `signal()` hold state, `computed()` derives from them, and the template re-renders only what reads a changed signal.

```ts
// src/app/book/book-cover.ts
import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';

@Component({
  selector: 'app-book-cover',
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    @if (showImage()) {
      <img [src]="readySrc()" [alt]="title()" (error)="failedSrc.set(readySrc())" />
    } @else {
      <div role="img">Cover unavailable</div>
    }
  `,
})
export class BookCover {
  readonly title = input.required<string>();
  readonly src = input.required<string | null>();
  protected readonly failedSrc = signal<string | null>(null);
  protected readonly readySrc = computed(() => getLargeBookImageUrl(this.src() ?? EMPTY_IMAGE_URL));
  protected readonly showImage = computed(() => this.readySrc() !== this.failedSrc());
}
```

Source: [Angular: Signals](https://angular.dev/guide/signals)

Gotchas:

- Angular updates per component, not per DOM node: when a signal changes, the whole template of each component that reads it re-runs (only changed bindings touch the DOM). Components that don't read the signal are not refreshed, and nothing is re-created. Finer-grained updates are proposed in [angular/angular#70333](https://github.com/angular/angular/issues/70333).

### Marko

Label: **1st-party** (2 of 2 points).

The compiler resolves reactivity per expression; "no dependency tracking happens at runtime"; `<let>` / `<const>`. ([why-is-marko-fast](https://markojs.com/docs/explanation/why-is-marko-fast))

Example of building it yourself:

`<let>` declares state and `<const>` derives from it. The compiler works out which DOM nodes depend on `count` at build time, so there is no runtime dependency tracking.

```marko
// src/tags/counter.marko
<let/count=0>
<const/doubled=count * 2>

<button onClick() { count++ }>
  ${count} × 2 = ${doubled}
</button>
```

Source: [Marko: Why is Marko fast](https://markojs.com/docs/explanation/why-is-marko-fast)

### Fresh

Label: **1st-party** (2 of 2 points).

Preact signals (`useSignal` from `@preact/signals`, a dependency of `@fresh/core` and part of the `@fresh/init` scaffold). Fresh serializes signal props so islands share state. ([signals](https://usefresh.dev/docs/concepts/signals), [sharing-state-between-islands](https://usefresh.dev/docs/examples/sharing-state-between-islands))

Example of building it yourself:

Preact signals. In the Books port, one module-level signal is shared by two islands: the trigger sets it and the drawer re-renders when it changes.

```ts
// lib/catalog-nav.ts
import { signal } from '@preact/signals';
export const mobileSidebarOpen = signal(false);
```

```tsx
// islands/MobileSidebarTrigger.tsx
import { mobileSidebarOpen } from '@/lib/catalog-nav.ts';

export default function MobileSidebarTrigger() {
  return <button aria-label="Open filters" onClick={() => (mobileSidebarOpen.value = true)}>Filters</button>;
}

// islands/MobileSidebar.tsx
export default function MobileSidebar({ children }: { children?: ComponentChildren }) {
  const isOpen = mobileSidebarOpen.value;
  return <aside hidden={!isOpen}>{children}</aside>;
}
```

Source: [Fresh: Signals](https://usefresh.dev/docs/concepts/signals)

### Analog

Label: **1st-party** (2 of 2 points).

Angular signals (`signal`, `computed`, `resource`); Analog's own `injectServerFn` returns an Angular `resource` that refetches when a signal it reads changes. Zoneless change detection is the default from Angular 21. ([server-functions](https://analogjs.org/docs/features/data-fetching/server-functions), [signals](https://angular.dev/guide/signals))

Example of building it yourself:

A signal holds the search text. `injectServerFn` returns an Angular resource that refetches when a signal read in its args factory changes.

```ts
// src/app/pages/search.page.ts
import { Component, computed, signal } from '@angular/core';
import { injectServerFn } from '@analogjs/router';
import { searchBooks } from '../server-fns/books.server';

@Component({
  template: `
    <input [value]="query()" (input)="query.set($any($event.target).value)" />
    <p>{{ count() }} results</p>
    @for (book of books.value() ?? []; track book.id) {
      <p>{{ book.title }}</p>
    }
  `,
})
export default class SearchPage {
  query = signal('');
  protected books = injectServerFn(searchBooks, () => ({ q: this.query() }));
  count = computed(() => this.books.value()?.length ?? 0);
}
```

Source: [Analog: Server functions](https://analogjs.org/docs/features/data-fetching/server-functions), [Angular: Signals](https://angular.dev/guide/signals)

### Vike

Label: **1st-party** (2 of 2 points).

The Vike-team UI extensions bring the UI framework's own reactivity: Solid signals with `vike-solid`, Vue refs with `vike-vue`, and the first-party [React Compiler](https://react.dev/learn/react-compiler) for `vike-react`, added to the React Vite plugin. ([vike-solid](https://vike.dev/vike-solid), [vike-vue](https://vike.dev/vike-vue), [vike-react](https://vike.dev/vike-react))

Example of building it yourself:

With `vike-react`, add the React Compiler to the Vite config. It memoizes components and values at build time, so a state change re-renders less.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import vike from 'vike/plugin'
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
import babel from '@rolldown/plugin-babel'

export default defineConfig({
  plugins: [
    vike(),
    react(),
    babel({ presets: [reactCompilerPreset()] }),
  ],
})
```

Source: [React: React Compiler installation](https://react.dev/learn/react-compiler/installation) · [Vike: vike-react](https://vike.dev/vike-react)

### RedwoodSDK

Label: **1st-party** (2 of 2 points).

React-based; the RedwoodSDK guide adds the first-party [React Compiler](https://react.dev/learn/react-compiler) as a Babel plugin on `@vitejs/plugin-react`, placed before the Cloudflare and RedwoodSDK plugins. ([react-compiler](https://docs.rwsdk.com/guides/optimize/react-compiler))

Example of building it yourself:

Add the React Compiler as a Babel plugin on `@vitejs/plugin-react`, placed before the Cloudflare and RedwoodSDK plugins. Components then get automatic memoization without `useMemo` or `useCallback`.

```ts
// vite.config.mts
import { defineConfig } from "vite";
import { redwood } from "rwsdk/vite";
import { cloudflare } from "@cloudflare/vite-plugin";
import react from "@vitejs/plugin-react";

export default defineConfig({
  plugins: [
    react({
      babel: {
        plugins: ["babel-plugin-react-compiler"],
      },
    }),
    cloudflare({ viteEnvironment: { name: "worker" } }),
    redwood(),
  ],
});
```

Source: [RedwoodSDK: React Compiler](https://docs.rwsdk.com/guides/optimize/react-compiler)

### Remix 3

Label: **Manual** (0 of 2 points).

State is a plain variable and the component re-renders only when the app calls `handle.update()`; there are no signals and no dependency tracking. ([interactivity](https://docs.remix.run/interactivity/), [component](https://docs.remix.run/api/component/))

Example of building it yourself:

State is a plain variable in setup scope. The component renders again only when you call `handle.update()`.

```tsx
// app/ui/public/counter.tsx
import { on } from "remix/component";
import type { Handle } from "remix/component";

export function Counter(handle: Handle<{ initialCount: number }>) {
  let count = handle.props.initialCount;

  return () => (
    <button
      type="button"
      mix={on("click", () => {
        count++;
        handle.update();
      })}
    >
      Count: {count}
    </button>
  );
}
```

Source: [Remix: Interactivity, state, updates, and post-render tasks](https://docs.remix.run/interactivity/)

### Void (React)

Label: **1st-party** (2 of 2 points).

React-based; the first-party [React Compiler](https://react.dev/learn/react-compiler) is added to `@vitejs/plugin-react` through `voidReact({ react: { ... } })`. The Void docs do not mention the compiler. ([pages adapters](https://void.cloud/reference/api/pages), [react-compiler](https://react.dev/learn/react-compiler))

Example of building it yourself:

React re-renders the component that owns the state. Void passes `react` options to `@vitejs/plugin-react`, so you can add the React Compiler to skip unchanged children. The Void docs do not mention the compiler.

```ts
// vite.config.ts
import { voidReact } from '@void/react/plugin'
import { defineConfig } from 'vite'
import { voidPlugin } from 'void'

export default defineConfig({
  plugins: [
    voidPlugin(),
    voidReact({ react: { babel: { plugins: ['babel-plugin-react-compiler'] } } }),
  ],
})
```

Source: [Void: Pages API](https://void.cloud/reference/api/pages) · [React Compiler](https://react.dev/learn/react-compiler)

### Void (Vue)

Label: **1st-party** (2 of 2 points).

Vue refs and `computed` track dependencies; a change re-renders only the components that read it. ([pages adapters](https://void.cloud/reference/api/pages), [vue reactivity](https://vuejs.org/guide/essentials/reactivity-fundamentals.html))

Example of building it yourself:

`@void/vue` keeps Vue's reactivity: a `ref` change re-renders only the components that read it.

```vue
<!-- pages/counter.vue -->
<script setup lang="ts">
import { ref } from 'vue'
const count = ref(0)
</script>

<template>
  <button @click="count++">Count: {{ count }}</button>
</template>
```

Source: [Void: Pages API](https://void.cloud/reference/api/pages) · [Vue: Reactivity fundamentals](https://vuejs.org/guide/essentials/reactivity-fundamentals.html)

### Void (Svelte)

Label: **1st-party** (2 of 2 points).

Svelte 5 runes (`$state`, `$derived`) update the bound DOM nodes; the component script runs once. ([pages adapters](https://void.cloud/reference/api/pages), [$state](https://svelte.dev/docs/svelte/$state))

Example of building it yourself:

`@void/svelte` keeps Svelte 5 runes: `$state` updates only the DOM nodes that read it, and the component script runs once.

```svelte
<!-- pages/counter.svelte -->
<script lang="ts">
  let count = $state(0)
</script>

<button onclick={() => count++}>Count: {count}</button>
```

Source: [Void: Pages API](https://void.cloud/reference/api/pages) · [Svelte: $state](https://svelte.dev/docs/svelte/$state)

### Void (Solid)

Label: **1st-party** (2 of 2 points).

Solid signals (`createSignal`) update the bound DOM nodes; the component function runs once. `@void/solid` requires `solid-js` ^1.9 (Solid 1, not Solid 2). ([pages adapters](https://void.cloud/reference/api/pages), [signals](https://docs.solidjs.com/concepts/signals))

Example of building it yourself:

`@void/solid` keeps Solid's signals: a `createSignal` change updates only the bound text, and the component function runs once. The adapter needs `solid-js` ^1.9 (Solid 1).

```tsx
// pages/counter.tsx
import { createSignal } from 'solid-js'

export default function Counter() {
  const [count, setCount] = createSignal(0)
  return <button onClick={() => setCount(count() + 1)}>Count: {count()}</button>
}
```

Source: [Void: Pages API](https://void.cloud/reference/api/pages) · [Solid: Signals](https://docs.solidjs.com/concepts/signals)

---

HTML version: https://framework-compare.vercel.app/features/reactivity · All pages: https://framework-compare.vercel.app/llms.txt · Data: https://framework-compare.vercel.app/api/index.json
