Tag: react-hooks
Managing URL Search Parameters and State
This skill provides best practices for managing URL search parameters and hash states in modern web applications. It guides developers on correctly using replace versus push history behavior to prevent browser history pollution when handlin…
URL Search Param and Hash Management
Provides patterns for managing URL search parameters and hash state to maintain correct browser history behaviour. It details when to use replace versus push for in-page state versus navigable steps.
Optimising React Components by Avoiding Effects
Guides best practices for writing React components by identifying when effects are truly necessary. It advises developers to derive state during rendering rather than using useEffect for simple data transformations or calculations.
React/TypeScript Component Architecture Guide
This guide provides architectural best practices for developing robust React/TypeScript components. It covers state management, data fetching contracts, prop typing, and component ownership to ensure highly maintainable and scalable codebas…
React Component Refactoring and Complexity Reduction
Provides structured patterns for refactoring high-complexity React components, focusing on extracting custom hooks, sub-components, and managing complex state logic. It guides developers through manual complexity assessment to improve maint…