// Posts (Page 9)

Sharing State and Lifting State Up in React

Learn when sibling React components need shared state, how to lift it to their nearest common owner, and why local state often beats global state.

Styling React Components and Importing Assets

Compare plain CSS with CSS modules, then learn how Vite handles imported files and public assets in React projects, with practical code examples.

Typed Function Components in React and TypeScript

Learn to type React function component props, understand inferred return types, handle optional values safely, and compose small components with confidence.

TypeScript Functions and Generics for React Code

Type callback and event handlers, use inference well, and build reusable React helpers and components with TypeScript generics and safe constraints.