Testing React Query
A guide on testing React components that use React Query, covering network request mocking and testing strategies for async server state.
A guide on testing React components that use React Query, covering network request mocking and testing strategies for async server state.
Explains React Query render optimizations, focusing on reducing unnecessary re-renders using options like notifyOnChangeProps.
Discusses the problems with vague module names like 'shared' and 'util' in software architecture and suggests more descriptive alternatives.
Exploring different approaches for transforming data when using React Query with REST APIs, including backend, queryFn, and frontend methods.
A guide on writing React components in TypeScript, covering prop typing and avoiding common pitfalls like React.FC.
A guide to using a Constrained Identity Function (CIF) in TypeScript to improve type safety for objects like a calculator's operations.
Explains why TypeScript restricts catch clause variable types and demonstrates the correct way to narrow error types using checks.
Explains why boolean function parameters are often a code smell and suggests better design alternatives.
A guide to different TypeScript function syntaxes, explaining when to use ':' vs '=>' for return types with practical examples.
Explains the Composite design pattern using the ngrev Angular visualization tool as a practical example from open-source software.
A guide to writing TypeScript types that require minimal maintenance by leveraging type inference and utility types.
An opinionated guide on improving TypeScript code readability by using descriptive names for generic type parameters instead of single letters.
A team's journey migrating from Flow to TypeScript for better type safety and maintainability in their React/JavaScript frontend codebase.
A guide on adding TypeScript types to the fetch API, using a GraphQL Pokemon API example from EpicReact.dev workshops.
A technical guide on creating a TypeScript-wrapped React useState hook for implementing a dark mode feature in applications.
A guide to implementing function overloads in TypeScript, using a practical example of a function that returns a Promise or void.
A developer's perspective on the importance of naming in programming, offering personal rules for creating readable and maintainable code.
Learn how to use absolute imports in Next.js to simplify file imports and improve project organization with jsconfig/tsconfig.
Opinionated guide on avoiding traditional class-based OOP patterns in TypeScript in favor of simpler module-based approaches.
Argues for using TypeScript type aliases over interfaces to avoid declaration merging issues and improve code safety.