Video wird geladen...
Video konnte nicht geladen werden
⚛️ Write better and safer condition with pattern matching ↓
108,866 Aufrufe • vor 2 Jahren •via X (Twitter)
9 Kommentare

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 ↓

I miss when you posted pictures instead of videos 😔

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

Nested conditional statements using the ternary operator

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

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?

thats dope

Things that I miss about Erlang…

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