Tag: react

6 entries tagged "react" — 3 posts, 3 links.

Posts

Apr 19, 202611 min — Systems Notes

XState, Actors, and What the Stately Argument Actually Buys

Why a hand-rolled retry double-charged a Stripe customer because the cancel state was implicit, and what XState 5's setup-plus-actors model gives you that useReducer does not.

Outcome: Reader can write an XState 5 machine using the setup pattern, distinguish invoked from spawned actors, decide when to graduate from useReducer to a state machine library, and read XState code as a structured argument rather than a configuration object.

Apr 15, 20268 min — Systems Notes

When the State Chart Pays Off

Why a React form with seven boolean flags shipped a flicker bug that statecharts would have surfaced before the first render, and the decision rule that says when this discipline earns its place.

Outcome: Reader can decide when a workflow is state-machine-shaped, replace boolean-flag explosion with a small statechart that names guards and transitions, and recognize statecharts as an architectural discipline rather than a UI utility.

Dec 2, 202516 min — Systems Notes

TypeScript Concepts Make More Sense Inside React

A practical TypeScript and React guide to the event loop, hoisting, throttling, debouncing, timers, closures, callbacks, IIFEs, promises, async, and await through code patterns that show up in real components.

Outcome: Provided a React-centered runtime map and reusable TypeScript examples for debugging async UI behavior, timer cleanup, stale closures, callback flow, and promise-based rendering work.

Links

All tags