⚛️ Write better and safer condition with pattern matching ↓
@_georgemoller118K followers
108,869 views
9 Comments
Comments from the original post on X (Twitter)

@_georgemoller
I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 70+ video tutorials just like this one. Check them out ↓
8 likes

@igorer88
I miss when you posted pictures instead of videos 😔
3 likes

@raoofhojat
use if/else, you don't need to abstract everything, especially if it's from a 3rd party library. more code is cheaper than wrong abstraction
3 likes

@samthatcode
Nested conditional statements using the ternary operator
2 likes

@caedes
For my part, I use cond from Ramda, it's quite pretty!
2 likes

@iAnujVarshney
It's like a switch case rather than use if else. This handling cases way is really amazing. Does any third party library either react to have this?
1 like

@mitev_andon
thats dope
1 like

@spfoos
Things that I miss about Erlang…
1 like

@muhimasri
Really nice! I like how the conditions are packed in a "with" function with comma separator. Very neat.
1 like
