React Conditional Rendering with Type Safety and Exhaustive Checking (lloydatkinson.net) 1 points by lloydatkinson 3y ago ↗ HN
[–] lloydatkinson 3y ago ↗ I wanted to share this nice TypeScript pattern when using React for conditional rendering based on a union type
1 comment
[ 3.5 ms ] story [ 7.9 ms ] thread