A collection of 1 post

How TypeScript guards react components

Some time ago we discussed discriminated unions as a super-feature of TypeScript which helps in keeping business rules straight in the code. Here is how we can transform this idea into React ecosystem. Let’s make sure our components are used in the right way. Unlimited variants as a highway to…