In this post, we will cover how TypeScript infers variable's type. Knowing this is important to build a solid understanding of the language.
Schema validation will help you ensure that your data is valid during runtime and Zod is the one of the best TypeScript libraries for it.
We will cover what ambient modules are, how to use them, and some caveats and tips when working with them.
This post explores some of the common best practices, why they don't always work, and what's a better approach.
Polymorphic components is a powerful React pattern for controlling how your components render in DOM.
Let's cover the right approach of implementing React higher-order components in TypeScript using generics and utility types.
Let's explore TypeScript utility types for React. Utility types are a powerful feature for constructing new types.
I'll cover each of the types used for children prop and discuss the trade-offs so you can pick the right one for your use case.
People often refactor without a strategy and for the wrong reasons. You need to know why you're doing it and have a clear end goal.
Using TypeScript and conditional props, you can build an API for your React components that is clear and explicit about its prop requirements.
Let's take a look at an advanced React pattern - Compound Component. This pattern is widely adopted by a lot of popular UI libraries.