React state and Angular signals both let interfaces respond to changing data, but they belong to different frameworks. Comparing a small counter makes their APIs easier to understand without treating one as a replacement for the other.

A counter with React state

import { useState } from "react";

export default function Counter() {
  const [count, setCount] = useState(0);

  return (
    <button onClick={() => setCount((current) => current + 1)}>
      Count: {count}
    </button>
  );
}

The click queues a state update. React renders using the new value and updates the DOM as needed. The updater form derives the next count from the previous count.

A counter with Angular signals

import { Component, signal } from "@angular/core";

@Component({
  selector: "app-counter",
  standalone: true,
  template: `<button (click)="increment()">Count: {{ count() }}</button>`,
})
export class CounterComponent {
  readonly count = signal(0);

  increment() {
    this.count.update((current) => current + 1);
  }
}

A signal stores a value and tracks where that value is read. Calling count() reads it; update derives and stores the next value. Angular uses tracked reads in templates to know which components depend on the signal.

Derived values

In React, a simple derived value can be calculated while rendering:

const doubled = count * 2;

With Angular signals, a derived signal can use computed:

import { computed, signal } from "@angular/core";

const count = signal(0);
const doubled = computed(() => count() * 2);

Neither example needs an effect that copies the derived value into separate state.

Performance depends on the application

React memoization tools are optimizations, not requirements for every component. Measure a slow interaction before adding memo, useMemo, or useCallback; they do not fix incorrect rendering logic.

Angular signals track dependencies, but they do not make every computation inexpensive. A costly calculation or a large collection still needs thoughtful implementation and measurement.

Choosing a state model

Use the APIs appropriate to your existing framework and requirements. For Angular, signals and RxJS can serve different needs, including current values and asynchronous streams. For React, local state may be enough for a small component; shared or server state introduces additional considerations.

This is a comparison of programming models, not a performance benchmark. A migration decision needs evidence from the application you actually maintain.

References