React Custom Hooks for Reusable Stateful Logic
Learn how React custom hooks reuse stateful logic, follow use* naming and call rules, type inputs and results, and keep each call's state independent.
Learn how React custom hooks reuse stateful logic, follow use* naming and call rules, type inputs and results, and keep each call's state independent.
See how React skills carry into React Native, learn core components and styling limits, and plan platform-specific UI, navigation, and testing.
Learn how React Router matches URLs to screens, navigates with links, reads dynamic parameters, and organizes shared layouts and route loading states.
Learn how useState snapshots work, how TypeScript infers state types, and how to update objects and arrays immutably in React components.
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.
Compare plain CSS with CSS modules, then learn how Vite handles imported files and public assets in React projects, with practical code examples.
Learn to type React function component props, understand inferred return types, handle optional values safely, and compose small components with confidence.
Type callback and event handlers, use inference well, and build reusable React helpers and components with TypeScript generics and safe constraints.
Learn to model optional and nullable fields, narrow unknown values, and safely parse API or storage data in React with strict TypeScript checks.
Learn how TypeScript models objects and arrays, when to use interfaces, and how to type React props while keeping untrusted runtime data safe.