1 comment

[ 3.5 ms ] story [ 7.9 ms ] thread
I wanted to share this nice TypeScript pattern when using React for conditional rendering based on a union type