TypeScript + React: Children types are broken
Article discusses broken TypeScript type checking for React children, allowing invalid objects that cause runtime errors.
Persönlicher Blog über TypeScript und Webentwicklung
180 Articles from this blog
Article discusses broken TypeScript type checking for React children, allowing invalid objects that cause runtime errors.
A defense of using the 'any' type in TypeScript, arguing it's a practical tool for migration, third-party libraries, and development flexibility.
A guide on using Rust enums to wrap and handle multiple error types, avoiding dynamic dispatch for more compile-time safety.
A technical deep-dive into the Deno JavaScript runtime, exploring its architecture, similarities to Node.js, and use of Rust and V8.
An in-depth guide to error handling in Rust, focusing on the Result<T, E> enum and best practices for managing operations that can fail.
Explains a TypeScript error where assigning object properties results in a 'never' type due to unexpected intersection types.
A guide on how to upgrade Node.js dependencies and fix vulnerabilities after running a yarn audit, including manual and automated methods.
Explains a TypeScript type narrowing issue with Array.includes when using const assertions and how to work around it.
A technical guide on how to correctly type generic React components that use forwardRef in TypeScript for enhanced type safety.
Discusses the problems with vague module names like 'shared' and 'util' in software architecture and suggests more descriptive alternatives.
A developer compares learning Rust and Go for systems programming, highlighting their design philosophies and personal coding experiences.
Explains why TypeScript restricts catch clause variable types and demonstrates the correct way to narrow error types using checks.
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.
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.
Argues against using TypeScript enums, advocating for union types due to code emission and type safety issues.
The author announces their new book 'TypeScript in 50 Lessons', a 450-page guide focused on the TypeScript type system.
An article exploring Preact, a lightweight React alternative, and its progressive ecosystem for building web applications.
An explanation of the 'this' keyword in JavaScript and TypeScript, covering its behavior in functions, event listeners, and binding methods.