正在加载视频...

视频加载失败

⚛️ Write better and safer condition with pattern matching ↓

108,866 次观看 • 2 年前 •via X (Twitter)

9 条评论

George Moller 的头像
George Moller2 年前

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 的头像
Igor2 年前

I miss when you posted pictures instead of videos 😔

ra 0of 的头像
ra 0of2 年前

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( ) 的头像
versionControlDev( )2 年前

Nested conditional statements using the ternary operator

Romain LAURENT 的头像
Romain LAURENT2 年前

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

Anuj Varshney 的头像
Anuj Varshney2 年前

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 的头像
AM2 年前

thats dope

Senthil 的头像
Senthil2 年前

Things that I miss about Erlang…

Muhi Masri 的头像
Muhi Masri2 年前

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

相关视频