Loading video...

Video Failed to Load

Go Home

⚛️ Write better and safer condition with pattern matching ↓

108,866 views • 2 years ago •via X (Twitter)

9 Comments

George Moller's profile picture
George Moller2 years ago

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 ↓

Igor's profile picture
Igor2 years ago

I miss when you posted pictures instead of videos 😔

ra 0of's profile picture
ra 0of2 years ago

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

versionControlDev( )'s profile picture
versionControlDev( )2 years ago

Nested conditional statements using the ternary operator

Romain LAURENT's profile picture
Romain LAURENT2 years ago

For my part, I use cond from Ramda, it's quite pretty!

Anuj Varshney's profile picture
Anuj Varshney2 years ago

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?

AM's profile picture
AM2 years ago

thats dope

Senthil's profile picture
Senthil2 years ago

Things that I miss about Erlang…

Muhi Masri's profile picture
Muhi Masri2 years ago

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

Related Videos