Advanced
Dan Cortes@typeof.eth
9/19/2023

Recently got turned onto ts-pattern. It's a pattern matching library, and it's _really_ nice for doing inline conditional rendering in React code. Ngl, I would mostly use IIFEs before this. Sorry not sorry. But hey, I have a better alternative now. https://github.com/gvergnaud/ts-pattern

In reply to @typeof.eth
9/19/2023

"sorry, not sorry" - that's a great expression (adding to toolbox). Super interesting library, checking it out now - thanks Dan.

In reply to @typeof.eth
Salief@salief
9/20/2023

I had the repo started, this looks interesting. Is this kind of like switch, case?