Posts tagged with #react

Type Inference and Annotations in TypeScript

Learn how TypeScript infers values and when annotations help in React props and event handlers, with practical examples, pitfalls, and runtime safety notes.

Union Types and Narrowing for React UI States

Learn how TypeScript union types model React loading, success, and error states, with discriminated unions, safe narrowing, and practical failure handling.

Capstone: Build a Typed React Task Tracker

Build a React task tracker with typed filters, accessible forms, versioned local storage, migration recovery, and a behavior test.

How to build and deploy a static site with Astro 7.4

Use Astro 7.4 to build a static site: pin Node, add a page and component, hydrate one React island, query a Markdown collection, and deploy the output.